{"action":"created","issue":{"url":"https://api.github.com/repos/zalando/intellij-swagger/issues/60","repository_url":"https://api.github.com/repos/zalando/intellij-swagger","labels_url":"https://api.github.com/repos/zalando/intellij-swagger/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/zalando/intellij-swagger/issues/60/comments","events_url":"https://api.github.com/repos/zalando/intellij-swagger/issues/60/events","html_url":"https://github.com/zalando/intellij-swagger/issues/60","id":188985076,"number":60,"title":"NPE in YamlTraversal","user":{"login":"bdaroz","id":9668896,"avatar_url":"https://avatars.githubusercontent.com/u/9668896?v=3","gravatar_id":"","url":"https://api.github.com/users/bdaroz","html_url":"https://github.com/bdaroz","followers_url":"https://api.github.com/users/bdaroz/followers","following_url":"https://api.github.com/users/bdaroz/following{/other_user}","gists_url":"https://api.github.com/users/bdaroz/gists{/gist_id}","starred_url":"https://api.github.com/users/bdaroz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdaroz/subscriptions","organizations_url":"https://api.github.com/users/bdaroz/orgs","repos_url":"https://api.github.com/users/bdaroz/repos","events_url":"https://api.github.com/users/bdaroz/events{/privacy}","received_events_url":"https://api.github.com/users/bdaroz/received_events","type":"User","site_admin":false},"labels":[{"id":374208967,"url":"https://api.github.com/repos/zalando/intellij-swagger/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-13T18:16:30Z","updated_at":"2016-12-13T08:44:58Z","closed_at":null,"body":"```\r\nIn file: LightVirtualFile: /apiv3-swagger.yaml\r\njava.lang.NullPointerException\r\n\tat java.util.Objects.requireNonNull(Objects.java:203)\r\n\tat java.util.Optional.<init>(Optional.java:96)\r\n\tat java.util.Optional.of(Optional.java:108)\r\n\tat org.zalando.intellij.swagger.traversal.YamlTraversal.getKeyNameIfKey(YamlTraversal.java:37)\r\n\tat org.zalando.intellij.swagger.validator.field.FieldsValidator.validate(FieldsValidator.java:25)\r\n\tat org.zalando.intellij.swagger.annotator.YamlValidKeyAnnotator.annotate(YamlValidKeyAnnotator.java:26)\r\n\tat com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:139)\r\n\tat com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102)\r\n\tat com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:363)\r\n\tat com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:303)\r\n\tat com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:322)\r\n\tat com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:325)\r\n\tat com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86)\r\n\tat com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:325)\r\n\tat com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:297)\r\n\tat com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:237)\r\n\tat com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:82)\r\n\tat com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)\r\n\tat com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:433)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1054)\r\n\tat com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:426)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)\r\n\tat com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)\r\n\tat com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:425)\r\n\tat com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:405)\r\n\tat com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:155)\r\n\tat java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)\r\n\tat java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)\r\n\tat java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)\r\n\tat java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)\r\n```\r\n\r\n```\r\nPyCharm 2016.3 EAP\r\nBuild #PY-163.7743.16, built on November 8, 2016\r\nPyCharm EAP User\r\nExpiration date: December 8, 2016\r\nJRE: 1.8.0_112-release-408-b2 x86_64\r\nJVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o\r\n```\r\n\r\nFile causing the NPE:\r\n\r\nhttps://github.com/bdaroz/the-blue-alliance/blob/18b6eec78fa3b45e14590ab7f9e37e944d7f25c2/static/apiv3-swagger.yaml"},"comment":{"url":"https://api.github.com/repos/zalando/intellij-swagger/issues/comments/266679640","html_url":"https://github.com/zalando/intellij-swagger/issues/60#issuecomment-266679640","issue_url":"https://api.github.com/repos/zalando/intellij-swagger/issues/60","id":266679640,"user":{"login":"rupert654","id":459011,"avatar_url":"https://avatars.githubusercontent.com/u/459011?v=3","gravatar_id":"","url":"https://api.github.com/users/rupert654","html_url":"https://github.com/rupert654","followers_url":"https://api.github.com/users/rupert654/followers","following_url":"https://api.github.com/users/rupert654/following{/other_user}","gists_url":"https://api.github.com/users/rupert654/gists{/gist_id}","starred_url":"https://api.github.com/users/rupert654/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rupert654/subscriptions","organizations_url":"https://api.github.com/users/rupert654/orgs","repos_url":"https://api.github.com/users/rupert654/repos","events_url":"https://api.github.com/users/rupert654/events{/privacy}","received_events_url":"https://api.github.com/users/rupert654/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T08:44:58Z","updated_at":"2016-12-13T08:44:58Z","body":"I thought that initially too, but then I felt like I may have misunderstood what the line is doing. Let me take another look."}}
{"actor":{"display_login":"rupert654"}}