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 268379 - NullPointerException at org.netbeans.modules.maven.customizer.RunJarPanel.applyChanges
Summary: NullPointerException at org.netbeans.modules.maven.customizer.RunJarPanel.app...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 14:46 UTC by AlexFalappa
Modified: 2016-10-28 01:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226621


Attachments
stacktrace (6.78 KB, text/plain)
2016-10-06 14:46 UTC, AlexFalappa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AlexFalappa 2016-10-06 14:46:40 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Linux

User Comments:
AlexFalappa: Opened project properties of a maven project with customized actions
In the Run panel clicked on button to add jvm options
Checked '-server' options and clicked OK
Got this exception and nothing shown in the text area in Run panel




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.customizer.RunJarPanel.applyChanges(RunJarPanel.java:545)
   at org.netbeans.modules.maven.customizer.RunJarPanel$2.insertUpdate(RunJarPanel.java:165)
   at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
   at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
   at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
   at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
Comment 1 AlexFalappa 2016-10-06 14:46:41 UTC
Created attachment 162371 [details]
stacktrace
Comment 2 Tomas Stupka 2016-10-26 13:35:00 UTC
according to the message shown in the panel - "One of Run/Debug/Profile Project actions has been modified and the Run panel cannot be safely edited"
when either the run, debug or profile action is changed, it should not be possible to customize the jvm options ->
-> the button should be disabled
Comment 3 Tomas Stupka 2016-10-26 13:36:02 UTC
fixed in jet-main #f30ebf455573
Comment 4 Quality Engineering 2016-10-28 01:54:05 UTC
Integrated into 'main-silver', will be available in build *201610280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f30ebf455573
User: Tomas Stupka <tstupka@netbeans.org>
Log: maven needs commons-lang internally
Issue #268379 - NullPointerException at org.netbeans.modules.maven.customizer.RunJarPanel.applyChanges