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 18168

Summary: The Updater misbehaves on the IDE shutdown if AutoUpdate wizard is cancelled
Product: platform Reporter: iformanek <iformanek>
Component: AutoupdateAssignee: akemr <akemr>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description iformanek 2001-11-28 18:42:01 UTC
Scenario:
1. start fresh IDE, select that Update Center should check for updates without 
asking, and every startup
2. the IDE starts
3. after one minute (!!!) the Update Center starts checking for updates and 
finds some
4. select couple of modules and start downloading
5. cancel the download
6. shut down the IDE
=> the Updater starts and an exception is thrown:

java.lang.NullPointerException
        at org.netbeans.updater.ModuleUpdate.createFromDistribution(ModuleUpdate
.java:88)
        at org.netbeans.updater.ModuleUpdate.<init>(ModuleUpdate.java:51)
        at org.netbeans.updater.ModuleUpdater.unpack(ModuleUpdater.java:280)
        at org.netbeans.updater.ModuleUpdater.run(ModuleUpdater.java:128)
Comment 1 akemr 2001-11-29 09:36:42 UTC
Fixed in release33 branch.

Problem was, that after Cancel during Download/Sign Verification
step (only) currently downloaded/verified nbm file was not deleted 
(but others yes). Then after IDE finish, launcher starts Updater and 
nbm was not correct.

Fix:
Delete currently downloaded/verified nbm file in this situation too.

Diffs:
http://www.netbeans.org/source/browse/autoupdate/src/org/netbeans/modu
les/autoupdate/Downloader.java.diff?r1=1.20&r2=1.20.2.1

http://www.netbeans.org/source/browse/autoupdate/src/org/netbeans/modu
les/autoupdate/SignVerifier.java.diff?r1=1.18&r2=1.18.2.1

http://www.netbeans.org/source/browse/autoupdate/src/org/netbeans/modu
les/autoupdate/Wizard.java.diff?r1=1.40&r2=1.40.4.1
Comment 2 akemr 2001-11-30 15:50:18 UTC
Integrated in release330
Comment 3 Jaromir Uhrik 2001-12-05 09:22:38 UTC
Verified in 200112042300
Comment 4 Quality Engineering 2003-06-30 13:51:26 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.