diff options
author | Sven Gothel <[email protected]> | 2012-05-04 04:57:44 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-05-04 04:57:44 +0200 |
commit | a058e0a2f465a9bff3e32727edb55592f55c7b38 (patch) | |
tree | df0b524e1074e6085eeb59a01d6a3c8ae06152b9 /src/java/jogamp/android/launcher | |
parent | d950f5ea8e88eeaf636a751d6b831c8a0ec15c34 (diff) |
LauncherUtil: Allow no query in URI and no PKG in query
Diffstat (limited to 'src/java/jogamp/android/launcher')
-rw-r--r-- | src/java/jogamp/android/launcher/LauncherUtil.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/java/jogamp/android/launcher/LauncherUtil.java b/src/java/jogamp/android/launcher/LauncherUtil.java index 953a810..41bbf52 100644 --- a/src/java/jogamp/android/launcher/LauncherUtil.java +++ b/src/java/jogamp/android/launcher/LauncherUtil.java @@ -249,7 +249,7 @@ public class LauncherUtil { } final String q = uri.getQuery(); - final int q_l = q.length(); + final int q_l = null != q ? q.length() : -1; int q_e = -1; while(q_e < q_l) { int q_b = q_e + 1; // next term @@ -293,9 +293,6 @@ public class LauncherUtil { if(null == activityName) { throw new RuntimeException("Activity is not NULL"); } - if(packages.size() == 0) { - throw new RuntimeException("Empty package list"); - } } } |