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 - NPE moving fragment
Summary: NPE moving fragment
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ sandipchitale
URL:
Keywords:
Depends on:
Blocks: 106402
  Show dependency tree
 
Reported: 2007-06-20 18:09 UTC by Lark Fitzgerald
Modified: 2007-06-26 08:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception text (3.02 KB, text/plain)
2007-06-20 18:11 UTC, Lark Fitzgerald
Details
nb6 project (31.15 KB, application/octet-stream)
2007-06-20 18:13 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
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