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 111728 - Add Java Microediton platform emulator wizard throws NPE
Summary: Add Java Microediton platform emulator wizard throws NPE
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 111970 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-02 12:46 UTC by Karol Harezlak
Modified: 2007-08-06 09:11 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.23 KB, text/plain)
2007-08-02 12:47 UTC, Karol Harezlak
Details
The NPEs. (32.65 KB, text/plain)
2007-08-02 15:18 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karol Harezlak 2007-08-02 12:46:32 UTC
Add Java Microediton platform emulator Wizard throws NPE. To reproduce it try to add Java ME Platform to the project.
Sources from 2.VIII.2007.
Comment 1 Karol Harezlak 2007-08-02 12:47:42 UTC
Created attachment 46055 [details]
stack trace
Comment 2 Jan Lahoda 2007-08-02 15:16:56 UTC
I guess kharezlak accidentally attached incorrect exception - I will attach the exceptions that are thrown to me. Right
now, I am not able to create a working J2ME project because of these exceptions, so (unless there is a workaround) I
would consider this to be a P1.
Comment 3 Jan Lahoda 2007-08-02 15:18:38 UTC
Created attachment 46067 [details]
The NPEs.
Comment 4 Martin Ryzl 2007-08-02 15:50:58 UTC
showstopper
Comment 5 Adam Sotona 2007-08-02 16:15:28 UTC
reassigning - WizardDescriptor.InstantiatingIterator.current() is called before initialize(...)
Comment 6 Tomas Zezula 2007-08-02 17:55:47 UTC
I've doubt this is the case, when the typeIterator is assigned it's always initialized,the code:

typeIterator = it;
if (this.typeIterator != null) {
 typeIterator.initialize (this.wizard);
....




Comment 7 Tomas Zezula 2007-08-02 19:41:06 UTC
Checking in src/org/netbeans/modules/java/platform/wizard/PlatformInstallIterator.java;
/cvs/java/platform/src/org/netbeans/modules/java/platform/wizard/PlatformInstallIterator.java,v  <-- 
PlatformInstallIterator.java
new revision: 1.14; previous revision: 1.13
done
Comment 8 Tomas Zezula 2007-08-02 19:50:02 UTC
The NPE ifs fixed, but the j2me wizard throws MissingResourceException, I've entered the new issue #111820.
Comment 9 Lukas Hasik 2007-08-03 10:42:16 UTC
verified in continuous build - netbeans-trunk-cb-200708030635-standard.zip
Comment 10 Lukas Hasik 2007-08-06 09:11:55 UTC
*** Issue 111970 has been marked as a duplicate of this issue. ***