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 242430 - Exception thrown when creating a New Midlet Java ME Embedded 8
Summary: Exception thrown when creating a New Midlet Java ME Embedded 8
Status: RESOLVED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-27 20:21 UTC by emoranchel
Modified: 2014-04-24 02:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emoranchel 2014-02-27 20:21:08 UTC
If a new Java ME Embedded 8 project is created with no default midlet attempting to create one throws an exception.
NullPointerException at org.netbeans.modules.j2me.project.wizard.NewJ2MEFileWizardIterator.addMidletManifestAttribute
The exception is solved once a MIDLet is configured in the project properties dialog.

Steps to reproduce.
- Create a New Project.
- Java ME Embedded - Java ME Embedded Application
- Uncheck the Create Midlet checkbox.
A new empty project is created.
- Right click the project select New-Midlet
- Click Finish
The exception is displayed.

EXCEPTION DETAILS:
java.lang.NullPointerException
	at org.netbeans.modules.j2me.project.wizard.NewJ2MEFileWizardIterator.addMidletManifestAttribute(NewJ2MEFileWizardIterator.java:335)
	at org.netbeans.modules.j2me.project.wizard.NewJ2MEFileWizardIterator.access$000(NewJ2MEFileWizardIterator.java:79)
	at org.netbeans.modules.j2me.project.wizard.NewJ2MEFileWizardIterator$1.run(NewJ2MEFileWizardIterator.java:213)
	at org.openide.util.Mutex.writeAccess(Mutex.java:479)
	at org.netbeans.modules.j2me.project.wizard.NewJ2MEFileWizardIterator.instantiate(NewJ2MEFileWizardIterator.java:210)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1046)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:160)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1629)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1570)
	at org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:92)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2257)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

WorkArounds:
(1)
Create the project with a Default MidLet.
(2)
- After the MIDLet is created with the exception open the project properties dialog.
- Open the Application Descriptor pane and go to the MIDlets tab, click Add to add the midlet.
- Following Midlets wont throw exceptions.
Comment 1 Roman Svitanic 2014-02-28 08:36:36 UTC
fixed in jet-main:
http://hg.netbeans.org/jet-main/rev/1a396c703c3e

Thanks for report!
Comment 2 Quality Engineering 2014-03-01 06:14:47 UTC
Integrated into 'main-silver', will be available in build *201403010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1a396c703c3e
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #242430: Exception thrown when creating a New Midlet Java ME Embedded 8 - fixed
Comment 3 Roman Svitanic 2014-04-18 08:12:37 UTC
transplanted to release80 branch:
http://hg.netbeans.org/releases/rev/fe711ff0cfcd
Comment 4 Quality Engineering 2014-04-24 02:12:17 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/fe711ff0cfcd
User: Roman Svitanic <rsvitanic@netbeans.org>
Log: #242430: Exception thrown when creating a New Midlet Java ME Embedded 8 - fixed