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.
How to reproduce: 1) Open Java Platform Manager 2) Select some platform (better if you have installed Java ME SDK platform) 3) Try to press "Add zip/folder ...", "Add zip/jar" and similar buttons 4) In opened file chooser not select some file by mouse but type file name - that doesn't exist (e.g. 4jkd8ufdu89c39) Results: For J2ME - nothing happens - no wrong javadoc or sources added (correct behaviour). For J2SE and CDC it accepts not existed files (bug). For CDC - Classes - java.lang.NullPointerException (NPE) P.S. Issue affects Java ME SDK.
This problem can lead to java.lang.IllegalArgumentException: - Open \"JP Manager\" - Select "CLDC platform" - Go to "Sources" tab and press "Add ZIP/JAR" - Choose "File Format:" All Files - Add file with incorrect extension (.jpg as instance) java.lang.IllegalArgumentException occurs.
Fixed jet-main d388401e07da Fixed for j2se platform, for other platforms (CDC) report issue on Java ME.
Integrated into 'main-golden', will be available in build *201103120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d388401e07da User: Tomas Zezula <tzezula@netbeans.org> Log: #162730:No check for jar/zip/folder in "Add ..." dialogs