cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [02/10] wp7 commit: check args.Length before using it
Date Wed, 27 Mar 2013 20:02:10 GMT
check args.Length before using it


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/80937680
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/80937680
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/80937680

Branch: refs/heads/2.6.x
Commit: 80937680d3030f0e965f12d72c88daa4c1883fc4
Parents: eb43851
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Mar 27 08:57:01 2013 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Mar 27 08:57:01 2013 -0700

----------------------------------------------------------------------
 tooling/CordovaDeploy/CordovaDeploy/Program.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/80937680/tooling/CordovaDeploy/CordovaDeploy/Program.cs
----------------------------------------------------------------------
diff --git a/tooling/CordovaDeploy/CordovaDeploy/Program.cs b/tooling/CordovaDeploy/CordovaDeploy/Program.cs
index a862227..f8e1bdd 100644
--- a/tooling/CordovaDeploy/CordovaDeploy/Program.cs
+++ b/tooling/CordovaDeploy/CordovaDeploy/Program.cs
@@ -126,7 +126,7 @@ namespace CordovaDeploy
                 ListDevices();
                 return;
             }
-            else if (args[1].StartsWith("-d:"))
+            else if (args.Length > 1 && args[1].StartsWith("-d:"))
             {
                 deviceIndex = int.Parse(args[1].Substring(3));
             }


Mime
View raw message