This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268207 - NullPointerException at org.netbeans.modules.java.api.common.ui.PlatformUiSupport$PlatformComboBoxModel.getPlatformNames
Summary: NullPointerException at org.netbeans.modules.java.api.common.ui.PlatformUiSup...
Status: RESOLVED DUPLICATE of bug 268222
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-26 15:13 UTC by ytn01
Modified: 2016-09-29 06:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226385


Attachments
stacktrace (2.29 KB, text/plain)
2016-09-26 15:13 UTC, ytn01
Details
stacktrace (2.29 KB, text/plain)
2016-09-26 15:16 UTC, ytn01
Details
EJB Jar project stacktrace (2.28 KB, text/plain)
2016-09-27 09:17 UTC, Martin Balin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2016-09-26 15:13:22 UTC
Build: NetBeans IDE 8.2 (Build 201609230201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b04, Java(TM) SE Runtime Environment, 1.8.0_112-ea-b04
OS: Windows 10

User Comments:
ytn01: I installed FCS build.
Started it,.. and upon prompt, imported settings from an existing NB 8.1 installation. (IDE started indexing Maven repostiories in the background)
Then, manually registered a Tomcat 8.0.36 installation I have.
Then, updated the Java DB configuration to point to a custom installation that I have.
Then switched to the projects window from Services window,.. and Exception got thrown.

GUEST: NPE clicking Properties in context menu on a Web Project.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.api.common.ui.PlatformUiSupport$PlatformComboBoxModel.getPlatformNames(PlatformUiSupport.java:793)
   at org.netbeans.modules.java.api.common.ui.PlatformUiSupport$PlatformComboBoxModel.getSelectedItem(PlatformUiSupport.java:754)
   at org.netbeans.modules.java.api.common.ui.PlatformUiSupport$SourceLevelComboBoxModel.<init>(PlatformUiSupport.java:917)
   at org.netbeans.modules.java.api.common.ui.PlatformUiSupport.createSourceLevelComboBoxModel(PlatformUiSupport.java:492)
   at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.init(WebProjectProperties.java:410)
   at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.<init>(WebProjectProperties.java:360)
Comment 1 ytn01 2016-09-26 15:13:24 UTC
Created attachment 162217 [details]
stacktrace
Comment 2 ytn01 2016-09-26 15:16:07 UTC
Created attachment 162218 [details]
stacktrace

I installed FCS build.
Started it,.. and upon prompt, imported settings from an existing NB 8.1 installation. (IDE started indexing Maven repostiories in the background)
Then, manually registered a Tomcat 8.0.36 installation I have.
Then, updated the Java DB configuration to point to a custom installation that I have.
Then switched to the projects window from Services window,.. and RIGHT CLICKED on a Java Web Project that was opened from last session.

and Exception got thrown. The RIGHT CLICK seems to be the triggering cause.
Comment 3 ytn01 2016-09-26 21:02:13 UTC
(In reply to ytn01 from comment #2)
> Created attachment 162218 [details]
> stacktrace
> 
> I installed FCS build.
> Started it,.. and upon prompt, imported settings from an existing NB 8.1
> installation. (IDE started indexing Maven repostiories in the background)
> Then, manually registered a Tomcat 8.0.36 installation I have.
> Then, updated the Java DB configuration to point to a custom installation
> that I have.
> Then switched to the projects window from Services window,.. and RIGHT
> CLICKED on a Java Web Project that was opened from last session.
> 
> and Exception got thrown. The RIGHT CLICK seems to be the triggering cause.

I meant to say,.. RIGHT CLICK and Click on Properties.
Comment 4 Martin Balin 2016-09-27 09:06:18 UTC
I've got the same NPE after created new Java Web Application project via wizard, not from existing sources. After project is created, attempt to open Project Properties throws the same NPE. Looks like FCS stopper
Comment 5 Martin Balin 2016-09-27 09:17:17 UTC
Created attachment 162231 [details]
EJB Jar project stacktrace

NPE when Properties of EJB Jar project should be opened.
Comment 6 Martin Balin 2016-09-27 09:18:42 UTC
Happens for several project types.
Comment 7 Tomas Zezula 2016-09-27 09:35:44 UTC
Duplicate of P1 issue #268222.

*** This bug has been marked as a duplicate of bug 268222 ***
Comment 8 ytn01 2016-09-28 17:21:00 UTC
Verified to No longer occurs on FCS 09/27
Comment 9 Tomas Zezula 2016-09-29 06:06:39 UTC
Thanks for verification.