junichi11 / netbeans-github-issues-plugin

Support for GitHub Issues
http://plugins.netbeans.org/plugin/57646/github-issues
Other
37 stars 10 forks source link

Periodical NullPointerException when task repository loses connection #52

Closed AlexFalappa closed 6 years ago

AlexFalappa commented 6 years ago

I am getting periodical NPEs without doing anything in particular. I suspect it is something linked to a network connection, cause I am now in a different setup than usual.

However it would be nice to guard against it.

Here's the stack trace:

java.lang.NullPointerException
    at com.junichi11.netbeans.modules.github.issues.query.GitHubQuery.refresh(GitHubQuery.java:239)
    at com.junichi11.netbeans.modules.github.issues.query.GitHubQueryProvider.refresh(GitHubQueryProvider.java:96)
    at com.junichi11.netbeans.modules.github.issues.query.GitHubQueryProvider.refresh(GitHubQueryProvider.java:52)
    at org.netbeans.modules.bugtracking.QueryImpl.refresh(QueryImpl.java:128)
    at org.netbeans.modules.bugtracking.tasks.dashboard.DashboardRefresher.refreshDashboard(DashboardRefresher.java:152)
    at org.netbeans.modules.bugtracking.tasks.dashboard.DashboardRefresher.access$400(DashboardRefresher.java:59)
    at org.netbeans.modules.bugtracking.tasks.dashboard.DashboardRefresher$1.run(DashboardRefresher.java:85)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

It seems that after invoking the properties of the GitHub task repository and clicking on Connect the problem should go away.

junichi11 commented 6 years ago

Thanks for reporting it!

junichi11 commented 6 years ago

Fixed. It should be OK. https://github.com/junichi11/netbeans-github-issues-plugin/releases/tag/v0.3.3

Thanks.

AlexFalappa commented 6 years ago

@junichi11 thanks for the swift reaction!