{"action":"created","issue":{"url":"https://api.github.com/repos/kwin/cppcheclipse/issues/84","repository_url":"https://api.github.com/repos/kwin/cppcheclipse","labels_url":"https://api.github.com/repos/kwin/cppcheclipse/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/kwin/cppcheclipse/issues/84/comments","events_url":"https://api.github.com/repos/kwin/cppcheclipse/issues/84/events","html_url":"https://github.com/kwin/cppcheclipse/issues/84","id":307146716,"number":84,"title":"NullPointerException on Save","user":{"login":"popy2k14","id":6324597,"avatar_url":"https://avatars0.githubusercontent.com/u/6324597?v=4","gravatar_id":"","url":"https://api.github.com/users/popy2k14","html_url":"https://github.com/popy2k14","followers_url":"https://api.github.com/users/popy2k14/followers","following_url":"https://api.github.com/users/popy2k14/following{/other_user}","gists_url":"https://api.github.com/users/popy2k14/gists{/gist_id}","starred_url":"https://api.github.com/users/popy2k14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popy2k14/subscriptions","organizations_url":"https://api.github.com/users/popy2k14/orgs","repos_url":"https://api.github.com/users/popy2k14/repos","events_url":"https://api.github.com/users/popy2k14/events{/privacy}","received_events_url":"https://api.github.com/users/popy2k14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-21T07:52:21Z","updated_at":"2018-03-22T11:53:15Z","closed_at":null,"author_association":"NONE","body":"Hey guys.\r\n\r\n**steps to reproduce:**\r\nUsing cppcheclipse in eclipse 4.5.2 on Ubuntu 16.04 and a cross compiling arm toolchain for imx.233.\r\nSometimes when i'll save a file (the file will be checked by cppcheclipse) it throws a NullPointerException.\r\nAlso it does'nt check any new saved files until i'll restart eclipse.\r\n\r\n**Here is the crash from the error log:**\r\n\r\n> eclipse.buildId=4.5.2.M20160212-1500\r\njava.version=1.8.0_151\r\njava.vendor=Oracle Corporation\r\nBootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE\r\nFramework arguments:  -product org.eclipse.epp.package.cpp.product\r\nCommand-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product\r\n\r\n> com.googlecode.cppcheclipse.ui\r\nError\r\nWed Mar 21 08:47:09 CET 2018\r\nErrors running builder 'cppcheck Project Builder' on project 'xs_app'.\r\n\r\n> java.lang.NullPointerException\r\n\tat com.googlecode.cppcheclipse.ui.Builder$ResourceVisitor.processFile(Builder.java:208)\r\n\tat com.googlecode.cppcheclipse.ui.Builder$ResourceVisitor.visit(Builder.java:122)\r\n\tat org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:119)\r\n\tat org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:83)\r\n\tat org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)\r\n\tat org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)\r\n\tat org.eclipse.core.internal.resources.Resource.accept(Resource.java:93)\r\n\tat org.eclipse.core.internal.resources.Resource.accept(Resource.java:51)\r\n\tat org.eclipse.core.internal.resources.Resource.accept(Resource.java:116)\r\n\tat org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)\r\n\tat com.googlecode.cppcheclipse.ui.Builder.processResource(Builder.java:306)\r\n\tat com.googlecode.cppcheclipse.ui.Builder$DeltaVisitor.visit(Builder.java:90)\r\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:63)\r\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:74)\r\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:74)\r\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:74)\r\n\tat org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:47)\r\n\tat com.googlecode.cppcheclipse.ui.Builder.incrementalBuild(Builder.java:323)\r\n\tat com.googlecode.cppcheclipse.ui.Builder.build(Builder.java:261)\r\n\tat org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245)\r\n\tat org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359)\r\n\tat org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\r\n\r\n\r\nWould be nice if you could look into it.\r\n\r\nthx"},"comment":{"url":"https://api.github.com/repos/kwin/cppcheclipse/issues/comments/375277962","html_url":"https://github.com/kwin/cppcheclipse/issues/84#issuecomment-375277962","issue_url":"https://api.github.com/repos/kwin/cppcheclipse/issues/84","id":375277962,"user":{"login":"AntonKrug","id":30338596,"avatar_url":"https://avatars0.githubusercontent.com/u/30338596?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonKrug","html_url":"https://github.com/AntonKrug","followers_url":"https://api.github.com/users/AntonKrug/followers","following_url":"https://api.github.com/users/AntonKrug/following{/other_user}","gists_url":"https://api.github.com/users/AntonKrug/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonKrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonKrug/subscriptions","organizations_url":"https://api.github.com/users/AntonKrug/orgs","repos_url":"https://api.github.com/users/AntonKrug/repos","events_url":"https://api.github.com/users/AntonKrug/events{/privacy}","received_events_url":"https://api.github.com/users/AntonKrug/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T11:53:15Z","updated_at":"2018-03-22T11:53:15Z","author_association":"CONTRIBUTOR","body":"I think running eclipse with the --consoleLog will open new window so you will see logs as they are happening\r\n\r\nhttps://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html"}}
{"actor":{"display_login":"AntonKrug"}}