Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2014-10-23 10:55:33 +0000
committerGerrit Code Review @ Eclipse.org2014-10-23 10:55:33 +0000
commit340c15421f7d44249ffe8c225c07fe9887a619d2 (patch)
treeea155d98fa8c686dd8b740f0a2a327a4f1cda7e1
parentd2cfc0efb701b10847db5005309dbcefbc8f6108 (diff)
parent523bb8f6361abd8dfcccdc977313246850f8523c (diff)
downloadegit-340c15421f7d44249ffe8c225c07fe9887a619d2.tar.gz
egit-340c15421f7d44249ffe8c225c07fe9887a619d2.tar.xz
egit-340c15421f7d44249ffe8c225c07fe9887a619d2.zip
Merge "fix warning about potential NPE in PasteCommand#getCloneURI"
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/PasteCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/PasteCommand.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/PasteCommand.java
index ce67c5f67e..41fa573d05 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/PasteCommand.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/PasteCommand.java
@@ -105,8 +105,8 @@ public class PasteCommand extends
}
private URIish getCloneURI(String content) {
- if (content != null && content.startsWith("git clone")) //$NON-NLS-1$
- content = content.substring(9);
+ if (content.startsWith("git clone")) //$NON-NLS-1$
+ content = content.substring("git clone".length()); //$NON-NLS-1$
URIish finalURI;
try {
finalURI = new URIish(content.trim());

Back to the top