{"action":"closed","issue":{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1517","labels_url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1517/labels{/name}","comments_url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1517/comments","events_url":"https://api.github.com/repos/BladeRunnerJS/brjs/issues/1517/events","html_url":"https://github.com/BladeRunnerJS/brjs/issues/1517","id":105610846,"number":1517,"title":"Random NullPointerException when refreshing the app","user":{"login":"janhancic","id":356488,"avatar_url":"https://avatars.githubusercontent.com/u/356488?v=3","gravatar_id":"","url":"https://api.github.com/users/janhancic","html_url":"https://github.com/janhancic","followers_url":"https://api.github.com/users/janhancic/followers","following_url":"https://api.github.com/users/janhancic/following{/other_user}","gists_url":"https://api.github.com/users/janhancic/gists{/gist_id}","starred_url":"https://api.github.com/users/janhancic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janhancic/subscriptions","organizations_url":"https://api.github.com/users/janhancic/orgs","repos_url":"https://api.github.com/users/janhancic/repos","events_url":"https://api.github.com/users/janhancic/events{/privacy}","received_events_url":"https://api.github.com/users/janhancic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/labels/6%20-%20Done","name":"6 - Done","color":"CCCCCC"},{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/labels/easy-pickings","name":"easy-pickings","color":"009800"},{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/labels/high-priority","name":"high-priority","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/BladeRunnerJS/brjs/milestones/40","html_url":"https://github.com/BladeRunnerJS/brjs/milestones/Current%20Focus","labels_url":"https://api.github.com/repos/BladeRunnerJS/brjs/milestones/40/labels","id":1305862,"number":40,"title":"Current Focus","description":"","creator":{"login":"dchambers","id":283294,"avatar_url":"https://avatars.githubusercontent.com/u/283294?v=3","gravatar_id":"","url":"https://api.github.com/users/dchambers","html_url":"https://github.com/dchambers","followers_url":"https://api.github.com/users/dchambers/followers","following_url":"https://api.github.com/users/dchambers/following{/other_user}","gists_url":"https://api.github.com/users/dchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/dchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchambers/subscriptions","organizations_url":"https://api.github.com/users/dchambers/orgs","repos_url":"https://api.github.com/users/dchambers/repos","events_url":"https://api.github.com/users/dchambers/events{/privacy}","received_events_url":"https://api.github.com/users/dchambers/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":5,"state":"open","created_at":"2015-09-15T07:41:01Z","updated_at":"2016-02-01T16:56:03Z","due_on":null,"closed_at":null},"comments":22,"created_at":"2015-09-09T14:40:00Z","updated_at":"2016-02-01T16:56:03Z","closed_at":"2016-02-01T16:56:03Z","body":"After upgrading to CT v4.3.2 (BRJS v1.0.2) I'm getting `NullPointerException`s in my browser (and in the console where I'm running `brjs serve`). They happen randomly, which means everything works fine, the app loads, etc. And then I'll refresh the app and get this exception. Then if I refresh again, app loads fine.\r\n\r\nI'm on a Mac. This is the call stack I get:\r\n\r\n```\r\nHTTP ERROR 500\r\n\r\nProblem accessing /myapp/. Reason:\r\n\r\n    Server Error\r\nCaused by:\r\n\r\njava.lang.NullPointerException\r\n\tat com.google.common.base.Joiner.join(Joiner.java:183)\r\n\tat org.bladerunnerjs.api.model.exception.CircularDependencyException.getCircularDependency(CircularDependencyException.java:41)\r\n\tat org.bladerunnerjs.api.model.exception.CircularDependencyException.<init>(CircularDependencyException.java:22)\r\n\tat org.bladerunnerjs.utility.SourceModuleDependencyOrderCalculator.getOrderedSourceModules(SourceModuleDependencyOrderCalculator.java:43)\r\n\tat org.bladerunnerjs.utility.BundleSetBuilder.createBundleSet(BundleSetBuilder.java:65)\r\n\tat org.bladerunnerjs.model.BundleSetCreator.createBundleSet(BundleSetCreator.java:50)\r\n\tat org.bladerunnerjs.model.AbstractBundlableNode.lambda$getBundleSet$2(AbstractBundlableNode.java:91)\r\n\tat org.bladerunnerjs.model.AbstractBundlableNode$$Lambda$1.get(Unknown Source)\r\n\tat org.bladerunnerjs.api.memoization.MemoizedValue.value(MemoizedValue.java:88)\r\n\tat org.bladerunnerjs.model.AbstractBundlableNode.getBundleSet(AbstractBundlableNode.java:90)\r\n\tat org.bladerunnerjs.model.AbstractBrowsableNode.filterIndexPage(AbstractBrowsableNode.java:24)\r\n\tat org.bladerunnerjs.utility.AppRequestHandler.getIndexPageContent(AppRequestHandler.java:215)\r\n\tat org.bladerunnerjs.utility.AppRequestHandler.handleLogicalRequest(AppRequestHandler.java:114)\r\n\tat org.bladerunnerjs.appserver.BRJSDevServlet.doGet(BRJSDevServlet.java:84)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:707)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:820)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1317)\r\n\tat org.bladerunnerjs.appserver.BRJSDevServletFilter.doFilter(BRJSDevServletFilter.java:83)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:25)\r\n\tat org.bladerunnerjs.appserver.filter.BRJSHeaderFilter.doFilter(BRJSHeaderFilter.java:57)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:30)\r\n\tat org.bladerunnerjs.appserver.filter.TokenisingServletFilter.doFilter(TokenisingServletFilter.java:69)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:30)\r\n\tat org.bladerunnerjs.appserver.filter.FileExtensionFilter.doFilter(FileExtensionFilter.java:43)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:30)\r\n\tat org.bladerunnerjs.appserver.BRJSServletFilter.doFilter(BRJSServletFilter.java:44)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:574)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:293)\r\n\tat org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:120)\r\n\tat org.bladerunnerjs.appserver.BRJSDevServletFilter.doFilter(BRJSDevServletFilter.java:80)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:25)\r\n\tat org.bladerunnerjs.appserver.filter.BRJSHeaderFilter.doFilter(BRJSHeaderFilter.java:57)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:30)\r\n\tat org.bladerunnerjs.appserver.filter.TokenisingServletFilter.doFilter(TokenisingServletFilter.java:69)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:30)\r\n\tat org.bladerunnerjs.appserver.filter.FileExtensionFilter.doFilter(FileExtensionFilter.java:43)\r\n\tat org.bladerunnerjs.appserver.util.VirtualFilterChain.doFilter(VirtualFilterChain.java:30)\r\n\tat org.bladerunnerjs.appserver.BRJSServletFilter.doFilter(BRJSServletFilter.java:44)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\r\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:369)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)\r\n\tat org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)\r\n\tat org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)\r\n\tat org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)\r\n\tat org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)\r\n\tat org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nPowered by Jetty://\r\n```\r\n\r\n<!---\r\n@huboard:{\"order\":3.3035757951438427e-07,\"milestone_order\":1517,\"custom_state\":\"\"}\n-->\r\n"}}