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 - No check for jar/zip/folder in "Add ..." dialogs
Summary: No check for jar/zip/folder in "Add ..." dialogs
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 162137
  Show dependency tree
 
Reported: 2009-04-15 16:01 UTC by fserges
Modified: 2011-03-12 09:44 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 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