Fix NPE in GitModelSynchronizeParticipant.getPathForResource()
commit7ac21ccc9faf0ff5fe9952391e311491f6952c53
authorSimon Delisle <simon.delisle@ericsson.com>
Tue, 28 Feb 2017 20:17:18 +0000 (28 15:17 -0500)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 28 Feb 2017 21:43:41 +0000 (28 22:43 +0100)
treedd2bfad9062440b37202b2641e919bf023b9b2b4
parent2bc635a8285cf1b6c36abc5fa71bf46990ff176e
Fix NPE in GitModelSynchronizeParticipant.getPathForResource()

when a resource location returns null.

In some situation, when you compare one file and this file references
another one in a different repository, an exception is thrown. Example,
one Papyrus model that references another one.

Change-Id: Ib1031943571c85f98ca88ad1af92e5fc56c3089d
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/GitModelSynchronizeParticipant.java