bndtools/bndtools — Issue #215: NPE in builder due to uninitialized workspace
Author: davemssavage
Created: 2011-10-21 10:58:40+00:00
State: open

Seems to be related to calling getWorkspaceOBRProvider before getWorkspace has been called.

Stack trace from error log:

java.lang.NullPointerException
at bndtools.WorkspaceObrProvider.rebuildIndex(WorkspaceObrProvider.java:102)
at bndtools.WorkspaceObrProvider.replaceProjectFiles(WorkspaceObrProvider.java:96)
at bndtools.builder.NewBuilder.rebuild(NewBuilder.java:372)
at bndtools.builder.NewBuilder.build(NewBuilder.java:102)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)