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 107480

Summary: NPE moving fragment
Product: obsolete Reporter: Lark Fitzgerald <lfitzgerald>
Component: visualwebAssignee: _ sandipchitale <sandipchitale>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 106402    
Attachments: exception text
nb6 project

Description Lark Fitzgerald 2007-06-20 18:09:34 UTC
NB6: 200706191800
Woodstock 4.1 200706182308

Move of fragment from one subfolder to another generates NPE:
org.netbeans.modules.visualweb.insync.faces.refactoring.FacesMoveRefactoringUI.isRefactoringBypassRequired
(FacesMoveRefactoringUI.java:126)

Steps:
1. create 2 subfolders
2. create fragment in on subfolder
3. DnD fragment from subfolder 1 to subfolder 2

NPE occurs
fragment does not get moved.
(app attached)
Comment 1 Lark Fitzgerald 2007-06-20 18:11:34 UTC
Created attachment 44083 [details]
exception text
Comment 2 Lark Fitzgerald 2007-06-20 18:13:28 UTC
Created attachment 44085 [details]
nb6 project
Comment 3 _ sandipchitale 2007-06-20 19:31:35 UTC
Looks like this was introduced after this check in:

MAIN:jbecicka:20070619140253 created by jbecicka on 19 June 2007, 14:02:54 +0000 (28 hours ago) (patch)  
#107043: [Safe Delete] Improve UI of safe delete action 
Rename, Copy and Move actions fixed as well. 

Comment 4 _ sandipchitale 2007-06-20 19:51:41 UTC
Need to initialize in the initialize() method instead of in the CTOR due to changes in:

refactoring/api/src/org/netbeans/modules/refactoring/spi/impl/ParametersPanel.java (1.14)

Checking in FacesMovePanel.java;
/cvs/visualweb/insync/src/org/netbeans/modules/visualweb/insync/faces/refactoring/FacesMovePanel.java,v  <--  
FacesMovePanel.java
new revision: 1.3; previous revision: 1.2
done
Comment 5 Lark Fitzgerald 2007-06-21 19:42:18 UTC
verified using:
NB6: 200706211113
Woodstock 4.1 200706210537