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 85862

Summary: NullPointerException when FileObject is renamed
Product: platform Reporter: rmatous <rmatous>
Component: FilesystemsAssignee: rmatous <rmatous>
Status: VERIFIED FIXED    
Severity: blocker CC: jtulach, mmirilovic
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 83353    
Attachments: diff

Description rmatous 2006-09-27 11:05:18 UTC
NPE at NamingFactory.renameChildren(NamingFactory.java:92)
Comment 1 rmatous 2006-09-27 11:12:53 UTC
The same bug exists also in trunk. Fixed: 
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v
 new revision: 1.12; previous revision: 1.11
Comment 2 rmatous 2006-09-27 11:15:09 UTC
Fixed in release55_dev:
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v
 
new revision: 1.5.28.1.2.3.10.1; previous revision: 1.5.28.1.2.3
Comment 3 rmatous 2006-09-27 11:22:39 UTC
Tests proves that it may happen. Because NPE during refactoring may be very
unpleasant I suggest to fix it. Jarda, please review.

QA please test.
Comment 4 rmatous 2006-09-27 11:23:34 UTC
Created attachment 34566 [details]
diff
Comment 5 Jaroslav Tulach 2006-09-27 13:14:01 UTC
Looks pretty safe.
Comment 6 Jaromir Uhrik 2006-09-29 09:29:57 UTC
No regression was found by QA during rename, move, copy  operations so that this
fix seems to be safe and can be integrated into the release55 branch.
Comment 7 rmatous 2006-09-29 09:36:30 UTC
Thanks. Fixed in release55:
/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/naming/NamingFactory.java,v
 
new revision: 1.5.28.1.2.4; previous revision: 1.5.28.1.2.3
Comment 8 Jaromir Uhrik 2006-10-02 11:31:02 UTC
Verified in 5.5 Dev build #200610020000 - played with the rename, move, copy 
operations and no problems found.