Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 1215] New - NullPointerException with "Edit Conflicts" on non-SVN-mergable files

subclipse
Discussion topic

Back to topic list

[Issue 1215] New - NullPointerException with "Edit Conflicts" on non-SVN-mergable files

Author wdstenze
Full name Winfried Stenzel
Date 2010-11-22 05:13:47 PST
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=1215
                 Issue #|1215
                 Summary|NullPointerException with "Edit Conflicts" on non-SVN-
                        |mergable files
               Component|subclipse
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|UI
             Assigned to|issues@subclipse
             Reported by|wdstenze






------- Additional comments from wdstenze at tigris dot org Mon Nov 22 05:13:46 -0800 2010 -------
Hello,

I still have a problem (NullPointerException) when executing "Edit Conflicts" in the
Synchronize view on files which cannot be merged automatically by SVN. I am
using Eclipse Helios with Subclipse 1.6.15. There was a partial fix for this
problem (http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=1191), but there is
another NPE later in the same function.

The following steps reproduce the behaviour:
Share and commit a project with one file (e.g. foo.xml)
Set mime-type of the file to application/octet-stream to prevent SVN from merging
commit again
Import this project under a different name
Change foo.xml in both projects
Commit foo.xml in the first project
Update to HEAD in the second project
Open the Synchronize view and select "Edit Conflicts" in the context menu

An empty error dialog is displayed. When debugging Eclipse, I get the following
stack trace:
Thread [ModalContext] (Suspended (exception NullPointerException))
    ConflictsCompareInpu​t.prepareInput(IProg​ressMonitor) line: 174
    ConflictsCompareInpu​t(CompareEditorInput​).run(IProgressMonit​or) line: 483
    ModalContext$ModalC​ontextThread.run() line: 121


The error does not appear, if the mime-type is empty and the file can be merged
automatically by SVN.

The problem seems to be that, foo.xml.mine is not created for files which cannot
be merged automatically, but ConflictsCompareInput expects this file.

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

[Issue 1215] New - NullPointerException with "Edit Conflicts" on non-SVN-mergable files wdstenze Winfried Stenzel 2010-11-22 05:13:47 PST
     [Issue 1215] NullPointerException with "Edit Conflicts" on non-SVN-mergable files wdstenze Winfried Stenzel 2010-11-22 05:36:05 PST
     [Issue 1215] NullPointerException with "Edit Conflicts" on non-SVN-mergable files selsemore Stephen Elsemore 2011-07-29 14:31:45 PDT
Messages per page: