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 162730

Summary: No check for jar/zip/folder in "Add ..." dialogs
Product: java Reporter: fserges <fserges>
Component: PlatformAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: blocker CC: rnajman
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 162137    

Description fserges 2009-04-15 16:01:23 UTC
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.
Comment 1 ingwarr 2009-12-02 05:51:34 UTC
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.
Comment 2 Tomas Zezula 2011-03-11 06:22:27 UTC
Fixed jet-main d388401e07da
Fixed for j2se platform, for other platforms (CDC) report issue on Java ME.
Comment 3 Quality Engineering 2011-03-12 09:44:03 UTC
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