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 89721 - NPE after saving modification.
Summary: NPE after saving modification.
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-21 09:24 UTC by Peter Pis
Modified: 2006-11-21 16:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (1.26 KB, application/octet-stream)
2006-11-21 09:24 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2006-11-21 09:24:04 UTC
NetBeans IDE Dev (Build 061121)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Linux version 2.6.9-1.667 running on i386
en_US (nb); UTF-8

Steps:
1. Open project under version control.
2. Open file into editor.
3. Delete last line of the file and try to save it.

NPE is thrown.
Comment 1 Peter Pis 2006-11-21 09:24:42 UTC
Created attachment 36160 [details]
NPE
Comment 2 Peter Pis 2006-11-21 09:25:23 UTC
java.lang.NullPointerException
        at
org.netbeans.modules.subversion.client.parser.WorkingCopyDetails.isModifiedByLine(WorkingCopyDetails.java:427)
        at
org.netbeans.modules.subversion.client.parser.WorkingCopyDetails.textModified(WorkingCopyDetails.java:306)
        at
org.netbeans.modules.subversion.client.parser.SvnWcParser.getSingleStatus(SvnWcParser.java:101)
        at
org.netbeans.modules.subversion.client.SvnCmdLineClientInvocationHandler.handleIntern(SvnCmdLineClientInvocationHandler.java:80)
Comment 3 Peter Pis 2006-11-21 09:52:31 UTC
There should be some svn keywords presented in the file.
Comment 4 Tomas Stupka 2006-11-21 10:11:01 UTC
fixed

Checking in WorkingCopyDetails.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/client/parser/WorkingCopyDetails.java,v
 <--  WorkingCopyDetails.java
new revision: 1.14; previous revision: 1.13
done
Comment 5 Peter Pis 2006-11-21 16:54:14 UTC
Verified.