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 27271 - NPE when removing a recently added file (which wasn't commited)
Summary: NPE when removing a recently added file (which wasn't commited)
Status: CLOSED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-12 15:17 UTC by Gus
Modified: 2007-01-04 17:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Logs for API and command-line clients (1.91 KB, application/octet-stream)
2002-09-12 15:21 UTC, Gus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gus 2002-09-12 15:17:52 UTC
Here comes the exception:

java.lang.NullPointerException
	at 
org.netbeans.lib.cvsclient.admin.StandardAdminHandler.remov
eEntry(StandardAdminHandler.java:370)
	at org.netbeans.lib.cvsclient.Client.removeEntry
(Client.java:636)
	at 
org.netbeans.lib.cvsclient.command.remove.RemoveCommand.sen
dEntryAndModifiedRequests(RemoveCommand.java:138)
	at 
org.netbeans.lib.cvsclient.command.BasicCommand.addRequestF
orFile(BasicCommand.java:313)
	at 
org.netbeans.lib.cvsclient.command.BasicCommand.addRequests
ForFile(BasicCommand.java:330)
	at 
org.netbeans.lib.cvsclient.command.BasicCommand.addRequests
(BasicCommand.java:179)
	at 
org.netbeans.lib.cvsclient.command.BasicCommand.addFileRequ
ests(BasicCommand.java:417)
	at 
org.netbeans.lib.cvsclient.command.BasicCommand.execute
(BasicCommand.java:410)
	at 
org.netbeans.lib.cvsclient.command.remove.RemoveCommand.exe
cute(RemoveCommand.java:110)
	at org.netbeans.lib.cvsclient.Client.executeCommand
(Client.java:480)
Comment 1 Gus 2002-09-12 15:21:04 UTC
Created attachment 7402 [details]
Logs for API and command-line clients
Comment 2 Gus 2002-09-12 15:30:28 UTC
This performing a remove over a file with status 'Locally 
Added'.
Comment 3 Martin Entlicher 2002-09-13 15:49:17 UTC
Well, the problem is in
org.netbeans.lib.cvsclient.command.remove.RemoveCommand.sendEntryAndModifiedRequests()
method. When isIgnoreLocallyExistingFiles() is true, the file is set
to null, which will cause the NPE.
Comment 4 Martin Entlicher 2002-09-16 13:32:19 UTC
Fixed in the main trunk.
/cvs/javacvs/libsrc/org/netbeans/lib/cvsclient/command/remove/RemoveCommand.java,v 
<--  RemoveCommand.java
new revision: 1.18; previous revision: 1.17
Comment 5 Jiri Kovalsky 2002-11-13 16:18:45 UTC
Nothing like this happens in development build #200211131011 of
NetBeans 4.0. Verified.
Comment 6 Jaroslav Tulach 2002-12-03 09:54:53 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 7 Martin Entlicher 2002-12-06 13:42:03 UTC
Merged into release341 branch.

/cvs/javacvs/libsrc/org/netbeans/lib/cvsclient/command/remove/RemoveCommand.java,v 
<--  RemoveCommand.java
new revision: 1.17.56.1; previous revision: 1.17
Comment 8 Quality Engineering 2003-07-01 12:48:40 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.