Bug 295893 - NPE in the Compare Editor
Summary: NPE in the Compare Editor
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-23 11:28 EST by Eric Rizzo CLA
Modified: 2019-09-06 16:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Rizzo CLA 2009-11-23 11:28:14 EST
When comparing workspace copy against the repository version (from the Synchronize view), I'm getting the following NPE:

null
Error
Mon Nov 23 11:30:32 EST 2009
An internal error occurred during: "Updating Compare Editor".

java.lang.NullPointerException
at org.eclipse.team.internal.ccvs.core.filehistory.CVSFileRevision.getAuthor(CVSFileRevision.java:39)
at org.eclipse.team.internal.ui.history.FileRevisionTypedElement.fetchAuthor(FileRevisionTypedElement.java:145)
at org.eclipse.team.internal.ui.mapping.ResourceDiffCompareInput.updateAuthorInfo(ResourceDiffCompareInput.java:332)
at org.eclipse.team.internal.ui.mapping.ResourceCompareInputChangeNotifier.fetchAuthors(ResourceCompareInputChangeNotifier.java:312)
at org.eclipse.team.internal.ui.mapping.ResourceCompareInputChangeNotifier$3.run(ResourceCompareInputChangeNotifier.java:304)
at org.eclipse.team.internal.core.BackgroundEventHandler$RunnableEvent.run(BackgroundEventHandler.java:176)
at org.eclipse.team.internal.ui.mapping.CompareInputChangeNotifier$InputChangeEventHandler.executeRunnableNow(CompareInputChangeNotifier.java:146)
at org.eclipse.team.internal.ui.mapping.CompareInputChangeNotifier$InputChangeEventHandler.doDispatchEvents(CompareInputChangeNotifier.java:101)
at org.eclipse.team.internal.core.BackgroundEventHandler.dispatchEvents(BackgroundEventHandler.java:394)
at org.eclipse.team.internal.core.BackgroundEventHandler.processEvents(BackgroundEventHandler.java:374)
at org.eclipse.team.internal.core.BackgroundEventHandler$1.run(BackgroundEventHandler.java:203)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Tomasz Zarna CLA 2009-11-24 03:24:59 EST
Eric are you getting it all the time? This looks like a common scenario, and you're the first one who noticed it. Is there something special about your configuration?
Comment 2 Eric Rizzo CLA 2009-11-24 09:32:05 EST
I suspect it's something either in the cvs server or the content of the files I'm working with, because, as you say, this is a common operation that many people perform every day. My cvs server is CVSNT 2.5.04 running on Mac OS X 10.6.2 (Snow Leopard). Would gathering some client/server interaction logging help here?
I'm not setup with a Galileo SDK right now so I can't look at the code in the stack above, but regardless of the cause I don't think an NPE and error dialog should result in any case.
Comment 3 Tomasz Zarna CLA 2009-12-01 04:55:13 EST
You're absolutely right, it should not happen. Next time you get the error please open the Error Log and CVS console (go to Console view and select CVS in the drop down menu) and look for something suspicious. This could help us finding the cause.
Comment 4 Eric Rizzo CLA 2009-12-01 10:50:18 EST
(In reply to comment #3)
> You're absolutely right, it should not happen. Next time you get the error
> please open the Error Log and CVS console (go to Console view and select CVS in
> the drop down menu) and look for something suspicious. This could help us
> finding the cause.

It's happening on every file that I try to compare in Synchronize view. Curiously, the CVS console is empty right after I see the error (I cleared it before trying). Error Log only has a report with the stack trace above.
Comment 5 Tomasz Zarna CLA 2009-12-03 05:21:02 EST
Make sure that "Quietness Level" on Team > CVS > Connection (tab) is set to "Verbose".
Comment 6 Eric Rizzo CLA 2009-12-03 10:22:19 EST
(In reply to comment #5)
> Make sure that "Quietness Level" on Team > CVS > Connection (tab) is set to
> "Verbose".

It is.
Now I'm noticing other odd behavior, including the History View being empty for many files in this project. It still baffles me why the CVS Console is not showing any activity (except when I commit). I've tried restarting Eclipse several times to no avail. Any other ideas for getting CVS activity logged correctly?
Comment 7 Tomasz Zarna CLA 2009-12-07 04:33:12 EST
(In reply to comment #6)

> Now I'm noticing other odd behavior, including the History View being empty for
> many files in this project.

This might be the same issue as described in bug 293551.
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:06:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.