You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (Jira)" <ji...@apache.org> on 2019/10/28 13:56:00 UTC

[jira] [Commented] (NETBEANS-3276) NPE in WebProjectBrowserProvider.

    [ https://issues.apache.org/jira/browse/NETBEANS-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16961065#comment-16961065 ] 

Laszlo Kishalmi commented on NETBEANS-3276:
-------------------------------------------

It would be good to know how to reproduce this issue.

Checking the source code I see where could be the NPE happen, though it shall be some corner case. Unfortunately it would be not enough to check for null, as if we got null there all which could be done is an assertion.  The better would be prevent this corner case.

Just for the record: For some strange reason the Maven implementation uses the folder to put these preferences on.

> NPE in WebProjectBrowserProvider.
> ---------------------------------
>
>                 Key: NETBEANS-3276
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3276
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.1
>            Reporter: Shevek
>            Assignee: Laszlo Kishalmi
>            Priority: Major
>
> java.lang.NullPointerException
> 	at org.netbeans.modules.gradle.javaee.web.WebProjectBrowserProvider.getPreferences(WebProjectBrowserProvider.java:119)
> 	at org.netbeans.modules.gradle.javaee.web.WebProjectBrowserProvider.removePropertyChangeListener(WebProjectBrowserProvider.java:106)
> 	at org.netbeans.modules.web.clientproject.browser.ActiveBrowserAction.activeProjectChanged(ActiveBrowserAction.java:320)
> 	at org.netbeans.modules.web.clientproject.browser.ActiveBrowserAction.refreshView(ActiveBrowserAction.java:305)
> 	at org.netbeans.modules.web.clientproject.browser.ActiveBrowserAction.access$700(ActiveBrowserAction.java:86)
> 	at org.netbeans.modules.web.clientproject.browser.ActiveBrowserAction$8.run(ActiveBrowserAction.java:295)
> 	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> 	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> 	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists