Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[subversive-dev] Possible NPE since r21584

Since commit 21584 method BaseCompareNode#getFetcher() may return null.
Here is a patch to avoid NPE in prepareCompareInput().

-- 
Florent Angebault
Linagora - Support OSSA
https://www.08000linux.com/
--- a/org.eclipse.team.svn.ui/src/org/eclipse/team/svn/ui/compare/ResourceCompareInput.java
+++ b/org.eclipse.team.svn.ui/src/org/eclipse/team/svn/ui/compare/ResourceCompareInput.java
@@ -195,7 +195,9 @@ public abstract class ResourceCompareInput extends SaveableCompareEditorInput {
 				this.root = (BaseCompareNode)this.root.getParent();
 			}
 			CompositeOperation op = this.root.getFetcher();
-			ProgressMonitorUtility.doTaskExternal(op, monitor);
+			if (op != null) {
+				ProgressMonitorUtility.doTaskExternal(op, monitor);
+			}
 		}
 		monitor.done();
 		return this.root;

Back to the top