{"comment":{"created_at":"2011-10-22T18:42:59Z","body":"Thanks Dave. I've pushed an alternative fix (1b46a2bccb25e66353896fe4ca19ac26edf38ad3) that allows the Workspace and Workspace OBR Provider to be created in any order and then tied together.","updated_at":"2011-10-22T18:42:59Z","url":"https://api.github.com/repos/bndtools/bndtools/issues/comments/2492097","id":2492097,"user":{"gravatar_id":"5ac5e7ffeaa7f4559f008bcc73e4ed3c","avatar_url":"https://secure.gravatar.com/avatar/5ac5e7ffeaa7f4559f008bcc73e4ed3c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/njbartlett","id":6366,"login":"njbartlett"}},"action":"created","issue":{"number":215,"created_at":"2011-10-21T10:58:40Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Seems to be related to calling getWorkspaceOBRProvider before getWorkspace has been called.\r\n\r\nStack trace from error log:\r\n\r\njava.lang.NullPointerException\r\n\tat bndtools.WorkspaceObrProvider.rebuildIndex(WorkspaceObrProvider.java:102)\r\n\tat bndtools.WorkspaceObrProvider.replaceProjectFiles(WorkspaceObrProvider.java:96)\r\n\tat bndtools.builder.NewBuilder.rebuild(NewBuilder.java:372)\r\n\tat bndtools.builder.NewBuilder.build(NewBuilder.java:102)\r\n\tat org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)\r\n\tat org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)\r\n\tat org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)","comments":1,"title":"NPE in builder due to uninitialized workspace","updated_at":"2011-10-22T18:42:59Z","url":"https://api.github.com/repos/bndtools/bndtools/issues/215","id":2014285,"assignee":null,"milestone":null,"closed_at":"2011-10-22T18:42:59Z","user":{"gravatar_id":"73df44ddc0bf0013754c684369b8b8de","avatar_url":"https://secure.gravatar.com/avatar/73df44ddc0bf0013754c684369b8b8de?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/davemssavage","id":349016,"login":"davemssavage"},"html_url":"https://github.com/bndtools/bndtools/issues/215","labels":[],"state":"closed"},"legacy":{"issue_id":2014285,"comment_id":2492097}}