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.
I have a platform application which ships with 2 .conf files in /etc. This causes the uninstaller to hang indefinitely due to a NPE. The cause is the code in NetBeansRCPUtils.getApplicationUserDir() - http://hg.netbeans.org/main-silver/file/868e279b3a11/libs.nbi.ant/stub/ext/engine/src/org/mycompany/installer/utils/applications/NetBeansRCPUtils.java#l106 which cannot handle cases of 2 .conf files It can handle more than 2 though! The same bug is repeated in the getApplicationName() method. This code doesn't need the 'if' checks on array length at all - it should just use the 'for' loop. The infrastructure should also be able to cope with a 'null' being returned from these methods without hanging. Workaround - add an additional empty file with the .conf suffix (eg. uninstaller.conf) - 3 files works fine.
Thanks for the report with a helpful hint, it really needs to be fixed. A patch would be welcome.
Fixed in changeset core-main/rev/31e86e49eff7 Thanks for the tip where and how to fix this bug. And I want to ask you to verify the fix. Thank you.
Integrated into 'main-golden', will be available in build *201209190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/31e86e49eff7 User: Libor Fischmeistr <lfischmeistr@netbeans.org> Log: #218220: Multiple .conf files causes RCP uninstaller to hang