{"action":"created","issue":{"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/266","repository_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce","labels_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/266/comments","events_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/266/events","html_url":"https://github.com/carymrobbins/intellij-haskforce/issues/266","id":144896431,"number":266,"title":"NullPointerException caused by CompilerFlagsProvider","user":{"login":"carymrobbins","id":3103764,"avatar_url":"https://avatars.githubusercontent.com/u/3103764?v=3","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-31T13:08:52Z","updated_at":"2016-03-31T14:04:45Z","closed_at":null,"body":"It seems `provider.getFlags` is returning null, causing an NPE.  This should be fixed.  Note that this occurred when working on HaskForce with no Haskell Tools configured.\r\n\r\n```\r\nnull\r\njava.lang.NullPointerException\r\n\tat java.util.Collections.addAll(Collections.java:5400)\r\n\tat com.haskforce.codeInsight.HaskellCompletionCacheLoader.com$haskforce$codeInsight$HaskellCompletionCacheLoader$$putStrings(HaskellCompletionCacheLoader.scala:86)\r\n\tat com.haskforce.codeInsight.HaskellCompletionCacheLoader$$anonfun$updateCache$1$$anonfun$apply$mcV$sp$1.apply(HaskellCompletionCacheLoader.scala:62)\r\n\tat com.haskforce.codeInsight.HaskellCompletionCacheLoader$$anonfun$updateCache$1$$anonfun$apply$mcV$sp$1.apply(HaskellCompletionCacheLoader.scala:61)\r\n\tat scala.Option.foreach(Option.scala:257)\r\n\tat com.haskforce.codeInsight.HaskellCompletionCacheLoader$$anonfun$updateCache$1.apply$mcV$sp(HaskellCompletionCacheLoader.scala:61)\r\n\tat com.haskforce.utils.SAMUtils$$anon$3.run(SAMUtils.scala:18)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"},"comment":{"url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/comments/203954582","html_url":"https://github.com/carymrobbins/intellij-haskforce/issues/266#issuecomment-203954582","issue_url":"https://api.github.com/repos/carymrobbins/intellij-haskforce/issues/266","id":203954582,"user":{"login":"carymrobbins","id":3103764,"avatar_url":"https://avatars.githubusercontent.com/u/3103764?v=3","gravatar_id":"","url":"https://api.github.com/users/carymrobbins","html_url":"https://github.com/carymrobbins","followers_url":"https://api.github.com/users/carymrobbins/followers","following_url":"https://api.github.com/users/carymrobbins/following{/other_user}","gists_url":"https://api.github.com/users/carymrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/carymrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carymrobbins/subscriptions","organizations_url":"https://api.github.com/users/carymrobbins/orgs","repos_url":"https://api.github.com/users/carymrobbins/repos","events_url":"https://api.github.com/users/carymrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/carymrobbins/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T14:04:45Z","updated_at":"2016-03-31T14:04:45Z","body":"Possibly related -\r\n\r\n```\r\nnull\r\ncom.haskforce.highlighting.annotation.external.GhcModi$CheckParseError\r\n\tat com.haskforce.highlighting.annotation.external.GhcModi.handleCheck(GhcModi.java:165)\r\n\tat com.haskforce.highlighting.annotation.external.GhcModi.unsafeCheck(GhcModi.java:122)\r\n\tat com.haskforce.highlighting.annotation.external.impl.GhcModiCompileProblemsProvider.getProblems(GhcModiCompileProblemsProvider.scala:18)\r\n\tat com.haskforce.highlighting.annotation.external.HaskellExternalAnnotator$State$$anonfun$buildForFile$1$$anonfun$apply$1.apply(HaskellExternalAnnotator.scala:94)\r\n\tat com.haskforce.highlighting.annotation.external.HaskellExternalAnnotator$State$$anonfun$buildForFile$1$$anonfun$apply$1.apply(HaskellExternalAnnotator.scala:94)\r\n\tat scala.Option.map(Option.scala:146)\r\n\tat com.haskforce.highlighting.annotation.external.HaskellExternalAnnotator$State$$anonfun$buildForFile$1.apply(HaskellExternalAnnotator.scala:94)\r\n\tat com.haskforce.highlighting.annotation.external.HaskellExternalAnnotator$State$$anonfun$buildForFile$1.apply(HaskellExternalAnnotator.scala:94)\r\n\tat scala.collection.immutable.List.flatMap(List.scala:327)\r\n\tat com.haskforce.highlighting.annotation.external.HaskellExternalAnnotator$State$.buildForFile(HaskellExternalAnnotator.scala:94)\r\n\tat com.haskforce.highlighting.annotation.external.HaskellExternalAnnotator.doAnnotate(HaskellExternalAnnotator.scala:44)\r\n\tat com.haskforce.highlighting.annotation.external.HaskellExternalAnnotator.doAnnotate(HaskellExternalAnnotator.scala:19)\r\n\tat com.intellij.codeInsight.daemon.impl.ExternalToolPass.d(ExternalToolPass.java:218)\r\n\tat com.intellij.codeInsight.daemon.impl.ExternalToolPass.access$500(ExternalToolPass.java:44)\r\n\tat com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:160)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:333)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:323)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:267)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:282)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:234)\r\n\tat com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)\r\n\tat com.intellij.util.Alarm$Request$1.run(Alarm.java:378)\r\n\tat com.intellij.util.Alarm$Request.run(Alarm.java:389)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:227)\r\n\tat com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:187)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"}}