Bug 304941 - Exception while refreshing a file being displayed in compare editor
Summary: Exception while refreshing a file being displayed in compare editor
Status: CLOSED DUPLICATE of bug 570714
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-07 12:34 EST by Max Gilead CLA
Modified: 2021-02-25 08:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Gilead CLA 2010-03-07 12:34:31 EST
Build Identifier: I20100129-1300

I can't reproduce this error in any simple test project but maybe this report would be useful anyway.

My setup is as follows:
- two Eclipse windows, one with editors, the other one with compare editor only
- I am comparing two text files, drag the compare editor to second E window
- one of them gets updated on disk
- I go to package explorer, hit F5 on the project the file is in
- I get the error (details below)
- compare editor contents gets updated properly

There's no loss of functionality, just an annoying error :)

The exception I get is:
java.lang.NullPointerException
at org.eclipse.compare.internal.merge.DocumentMerger.doDiff(DocumentMerger.java:452)
at org.eclipse.compare.contentmergeviewer.TextMergeViewer.doDiff(TextMergeViewer.java:3277)
at org.eclipse.compare.contentmergeviewer.TextMergeViewer.update(TextMergeViewer.java:5001)
at org.eclipse.compare.contentmergeviewer.TextMergeViewer$2.runInUIThread(TextMergeViewer.java:1047)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3501)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3148)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2407)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2371)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2220)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:367)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:611)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
at org.eclipse.equinox.launcher.Main.run(Main.java:1363)

Additional info:
eclipse.buildId=I20100129-1300
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_GB
Command-line arguments:  -os linux -ws gtk -arch x86


Reproducible: Always
Comment 1 Tomasz Zarna CLA 2010-03-09 05:55:42 EST
Thanks for the report Max. To make things clear and reproducible over here could you give me more details?

> - two Eclipse windows, one with editors, the other one with compare editor only

Does it mean you're running two Eclipse instances...

> - I am comparing two text files, drag the compare editor to second E window

... drag editors from one to another?

> - one of them gets updated on disk

How come? Did the content change?

> - I go to package explorer, hit F5 on the project the file is in
> - I get the error (details below)
> - compare editor contents gets updated properly
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:10:03 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.
Comment 3 Lars Vogel CLA 2021-02-25 08:21:01 EST

*** This bug has been marked as a duplicate of bug 570714 ***