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 36369 - NPE after paste to root of filesystem
Summary: NPE after paste to root of filesystem
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Miloslav Metelka
URL:
Keywords: REGRESSION
: 36442 36649 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-01 09:35 UTC by Lukas Hasik
Modified: 2008-12-22 19:37 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Possible fix (2.28 KB, patch)
2003-10-20 18:21 UTC, Miloslav Metelka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2003-10-01 09:35:52 UTC
dev build 200310300100, jdk1.4.2

copy any java file or form from examples dir and
paste into root filesystem in Explorer

file is copied but this Exception appears

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at
org.openide.text.CloneableEditorSupport$1.run(CloneableEditorSupport.java:400)
	at org.openide.util.Task.run(Task.java:136)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:677)


Note: it doesn't happend with txt file
Comment 1 David Konecny 2003-10-01 13:18:50 UTC
Is it reproducible? It works fine for me.
Comment 2 Lukas Hasik 2003-10-01 13:39:46 UTC
yes, reproducible almost all time. 8 from 10 times.
try paste more times...
Comment 3 David Konecny 2003-10-01 14:16:46 UTC
Aha, I had build from yesterday and it is OK there.

Mila, looks like side effect of your yesterday's change. Could you
look at it please? Pass back if it is not related. Thanx.
Comment 4 Miloslav Metelka 2003-10-03 14:29:27 UTC
Lukasi, are you reproducing it only on W2K or on Linux too? I'm unable
to repro on RH9 so I'll have to switch to WXP for testing of this bug.
Just curious whether there isn't any other problem or necessary
condition for reproducing.
Comment 5 Lukas Hasik 2003-10-03 14:51:49 UTC
I did try again on fresh userdir on w2k - and it was reproducible, 5x
nothing and then the NPE.
I tried it on linux and nothing (30xpaste). So maybe you will have to
switch on w2k, sorry Mila.

Exact steps:
1,start
2,"Copy" on any form or java from examples
3,"Paste->Copy" on {userdir}/sampledir filesystem

correction: the build number is 200310010100
Comment 6 Lukas Hasik 2003-10-06 13:17:31 UTC
*** Issue 36442 has been marked as a duplicate of this issue. ***
Comment 7 Jiri Skrivanek 2003-10-06 13:29:28 UTC
I can also reproduce it in build 200310060100, JDK1.4.2_01,
WindowsXP (also happens on Sparc/Solaris).
Comment 8 Miloslav Metelka 2003-10-09 16:12:27 UTC
I was able to reproduce the problem on WinXP. I've made a fix that
I've checked into trunk:

Checking in src/org/openide/text/CloneableEditorSupport.java;
/cvs/openide/src/org/openide/text/CloneableEditorSupport.java,v  <-- 
CloneableEditorSupport.java
new revision: 1.97; previous revision: 1.96


Lukasi, please check the tomorrow's dev build whether it no longer
appears. Thanks.
Comment 9 Lukas Hasik 2003-10-15 13:39:54 UTC
ok, seems fine. verifying.
Comment 10 Jiri Skrivanek 2003-10-16 18:38:26 UTC
It is again in build 200310160100 after fix of issue 36624.
Comment 11 Jiri Rechtacek 2003-10-17 09:05:27 UTC
*** Issue 36649 has been marked as a duplicate of this issue. ***
Comment 12 Miloslav Metelka 2003-10-20 18:21:08 UTC
Created attachment 11913 [details]
Possible fix
Comment 13 Miloslav Metelka 2003-10-20 18:23:07 UTC
The patch was reviewed by Petr Nejedly.
Fixed in maintrunk:
/cvs/openide/src/org/openide/text/CloneableEditorSupport.java,v  <-- 
CloneableEditorSupport.java
new revision: 1.99; previous revision: 1.98
Comment 14 Miloslav Metelka 2003-10-21 17:10:56 UTC
Integrated into q-build branch QBE200310150100.
Comment 15 Jiri Skrivanek 2003-10-22 07:06:01 UTC
Verified in build 200310220100.