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

NPE in JavaHelper causes bundle classpath refresh to fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • 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.eclipse.model.util.JavaHelper.resolveClasspathEntrys(JavaHelper.java:384)
      at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.findExternalClasspath(SigilProject.java:205)
      at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.buildClassPathEntries(SigilClassPathContainer.java:102)
      at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.getClasspathEntries(SigilClassPathContainer.java:58)
      at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1806)
      at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1760)
      at org.eclipse.jdt.internal.core.ClasspathValidation.validate(ClasspathValidation.java:68)
      at org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged(ChangeClasspathOperation.java:51)
      at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:110)
      at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
      at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4759)
      at org.apache.felix.sigil.ui.eclipse.classpath.SigilClasspathContainerInitializer.requestClasspathContainerUpdate(SigilClasspathContainerInitializer.java:73)
      at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.resetClasspath(SigilProject.java:358)
      at org.apache.felix.sigil.ui.eclipse.handlers.project.RefreshSigilClasspathCommandHandler$1.execute(RefreshSigilClasspathCommandHandler.java:56)
      at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Root exception:
      java.lang.NullPointerException
      at org.apache.felix.sigil.eclipse.model.util.JavaHelper.resolveClasspathEntrys(JavaHelper.java:384)
      at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.findExternalClasspath(SigilProject.java:205)
      at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.buildClassPathEntries(SigilClassPathContainer.java:102)
      at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.getClasspathEntries(SigilClassPathContainer.java:58)
      at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1806)
      at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1760)
      at org.eclipse.jdt.internal.core.ClasspathValidation.validate(ClasspathValidation.java:68)
      at org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged(ChangeClasspathOperation.java:51)
      at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:110)
      at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
      at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4759)
      at org.apache.felix.sigil.ui.eclipse.classpath.SigilClasspathContainerInitializer.requestClasspathContainerUpdate(SigilClasspathContainerInitializer.java:73)
      at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.resetClasspath(SigilProject.java:358)
      at org.apache.felix.sigil.ui.eclipse.handlers.project.RefreshSigilClasspathCommandHandler$1.execute(RefreshSigilClasspathCommandHandler.java:56)
      at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: