{"action":"closed","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/792","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/792/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/792/events","html_url":"https://github.com/bazelbuild/bazel/issues/792","id":126966730,"number":792,"title":"NullPointerException in skyframe.DelegatingWalkableGraph#getEntry","user":{"login":"damienmg","id":3721087,"avatar_url":"https://avatars.githubusercontent.com/u/3721087?v=3","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P1","name":"P1","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T21:59:11Z","updated_at":"2016-01-22T16:06:58Z","closed_at":"2016-01-22T16:06:58Z","body":"I haven't investigated much but here what I get:\r\n```\r\n$ ${BAZEL} build :*\r\nSending SIGTERM to previous Bazel server (pid=21104)... done.\r\n........\r\nUnhandled exception thrown during build; message: PACKAGE:@protobuf//\r\nINFO: Elapsed time: 0.648s\r\njava.lang.NullPointerException: PACKAGE:@protobuf//\r\n        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:228)\r\n        at com.google.devtools.build.lib.util.Preconditions.checkNotNull(Preconditions.java:336)\r\n        at com.google.devtools.build.skyframe.DelegatingWalkableGraph.getEntry(DelegatingWalkableGraph.java:50)\r\n        at com.google.devtools.build.skyframe.DelegatingWalkableGraph.getValue(DelegatingWalkableGraph.java:73)\r\n        at com.google.devtools.build.lib.skyframe.TargetPatternsResultBuilder.findPackageInGraph(TargetPatternsResultBuilder.java:108)\r\n        at com.google.devtools.build.lib.skyframe.TargetPatternsResultBuilder.precomputePackages(TargetPatternsResultBuilder.java:81)\r\n        at com.google.devtools.build.lib.skyframe.TargetPatternsResultBuilder.build(TargetPatternsResultBuilder.java:50)\r\n        at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternKeys(SkyframeTargetPatternEvaluator.java:186)\r\n        at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternList(SkyframeTargetPatternEvaluator.java:117)\r\n        at com.google.devtools.build.lib.skyframe.SkyframeTargetPatternEvaluator.parseTargetPatternList(SkyframeTargetPatternEvaluator.java:56)\r\n        at com.google.devtools.build.lib.pkgcache.LegacyLoadingPhaseRunner.getTargetsToBuild(LegacyLoadingPhaseRunner.java:417)\r\n        at com.google.devtools.build.lib.pkgcache.LegacyLoadingPhaseRunner.execute(LegacyLoadingPhaseRunner.java:134)\r\n        at com.google.devtools.build.lib.buildtool.BuildTool.runLoadingPhase(BuildTool.java:401)\r\n        at com.google.devtools.build.lib.buildtool.BuildTool.buildTargets(BuildTool.java:165)\r\n        at com.google.devtools.build.lib.buildtool.BuildTool.processRequest(BuildTool.java:334)\r\n        at com.google.devtools.build.lib.runtime.commands.BuildCommand.exec(BuildCommand.java:71)\r\n        at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:371)\r\n        at com.google.devtools.build.lib.runtime.BlazeRuntime$3.exec(BlazeRuntime.java:1016)\r\n        at com.google.devtools.build.lib.server.RPCService.executeRequest(RPCService.java:65)\r\n        at com.google.devtools.build.lib.server.RPCServer.executeRequest(RPCServer.java:434)\r\n        at com.google.devtools.build.lib.server.RPCServer.serve(RPCServer.java:229)\r\n        at com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:975)\r\n        at com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:772)\r\n        at com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:55)\r\n```\r\n\r\nThis is at HEAD (or more precisely at the soon to be 0.1.4rc2 which I am testing right now)\r\n\r\nIt seems to be here for at least a month because I got it also from a Bazel version from December 1st.\r\n\r\nThe workspace:\r\n```\r\n$ cat BUILD \r\ngenrule(\r\n  name = \"dummy\",\r\n  srcs = [\"@protobuf//:cc_test_protos\"],\r\n  outs = [\"dummy.txt\"],\r\n  cmd = \"ls -l $(SRCS) >$@\",\r\n)\r\n$ cat WORKSPACE \r\nlocal_repository(\r\n  name = \"protobuf\",\r\n  path = \"/usr/local/google/home/dmarting/toto/protobuf\",\r\n)\r\n```\r\n\r\n`$BAZEL build @protobuf//:cc_test_protos` seems to fix it.\r\n"}}