summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorTomasz Zarna2012-04-03 03:21:45 (EDT)
committer Tomasz Zarna2012-04-03 03:21:45 (EDT)
commitb76b2c89c0a5c90d36ce1bcbf7860545616865e4 (patch)
tree6baa0ca054477885bfd424694b424b377ae9355d
parenta00ea5e5a134fa908980ddc1075a90a5d316fdea (diff)
downloadegit-b76b2c89c0a5c90d36ce1bcbf7860545616865e4.zip
egit-b76b2c89c0a5c90d36ce1bcbf7860545616865e4.tar.gz
egit-b76b2c89c0a5c90d36ce1bcbf7860545616865e4.tar.bz2
SimplePushSpecPage: isEmpty() is undefined for the type String in Java 5refs/changes/19/5519/1
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/SimplePushSpecPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/SimplePushSpecPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/SimplePushSpecPage.java
index 92803c1..34a5a0f 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/SimplePushSpecPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/SimplePushSpecPage.java
@@ -160,7 +160,8 @@ public class SimplePushSpecPage extends WizardPage {
@Override
public boolean isPageComplete() {
- return !remoteRefName.getText().isEmpty();
+ return remoteRefName.getText() != null
+ && remoteRefName.getText().length() > 0;
}
/**