diff options
author | Robin Stocker | 2014-10-23 10:55:33 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2014-10-23 10:55:33 +0000 |
commit | 340c15421f7d44249ffe8c225c07fe9887a619d2 (patch) | |
tree | ea155d98fa8c686dd8b740f0a2a327a4f1cda7e1 | |
parent | d2cfc0efb701b10847db5005309dbcefbc8f6108 (diff) | |
parent | 523bb8f6361abd8dfcccdc977313246850f8523c (diff) | |
download | egit-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.java | 4 |
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()); |