Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2159

NPE when searching for available imports - seems to be caused by corruption of internal model

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: sigil-1.0.0
    • Component/s: Sigil
    • Labels:
      None

      Description

      java.lang.NullPointerException
      at org.apache.felix.sigil.core.internal.model.osgi.PackageExport.equals(PackageExport.java:178)
      at java.util.ArrayList.indexOf(ArrayList.java:216)
      at java.util.ArrayList.contains(ArrayList.java:199)
      at org.apache.felix.sigil.ui.eclipse.ui.util.BackgroundLoadingSelectionDialog.addElements(BackgroundLoadingSelectionDialog.java:476)
      at org.apache.felix.sigil.ui.eclipse.ui.util.ExportedPackageFinder$1.visit(ExportedPackageFinder.java:65)
      at org.apache.felix.sigil.model.AbstractCompoundModelElement.visit(AbstractCompoundModelElement.java:88)
      at org.apache.felix.sigil.model.AbstractCompoundModelElement.visit(AbstractCompoundModelElement.java:94)
      at org.apache.felix.sigil.repository.AbstractRepositoryManager$2.visit(AbstractRepositoryManager.java:398)
      at org.apache.felix.sigil.obr.impl.CachingOBRBundleRepository.accept(CachingOBRBundleRepository.java:46)
      at org.apache.felix.sigil.repository.AbstractBundleRepository.accept(AbstractBundleRepository.java:94)
      at org.apache.felix.sigil.repository.AbstractRepositoryManager.visit(AbstractRepositoryManager.java:403)
      at org.apache.felix.sigil.ui.eclipse.ui.util.ExportedPackageFinder.run(ExportedPackageFinder.java:72)
      at org.apache.felix.sigil.ui.eclipse.ui.util.BackgroundLoadingSelectionDialog$3.run(BackgroundLoadingSelectionDialog.java:223)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

      Debug of situation shows the following package is causing the problem. Inspecting the source of the sigil.properties file showed no such export...

      PackageExport[M:null:uses=[Ljava.lang.String;@706b633d]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davemssavage David Savage
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: