commit | b23dbfce7ea84c39cea75b612868a5832cb9af2b | [log] [tgz] |
---|---|---|
author | Chia-chi Yeh <chiachi@android.com> | Wed Nov 23 17:27:05 2011 -0800 |
committer | Chia-chi Yeh <chiachi@android.com> | Wed Nov 23 17:30:53 2011 -0800 |
tree | 66172df7a30bfa2408db49d4a8e274f3eaf4102f | |
parent | 3ff4b4d623bfb41ec47eea0c87c9aa9bbb9843db [diff] |
Wrap RuntimeException into ParseException when parsing SIP URLs. Bug: 5665199 Change-Id: If61b837a2e14f7e63ae2d17451a241433e44c281
diff --git a/java/gov/nist/javax/sip/parser/URLParser.java b/java/gov/nist/javax/sip/parser/URLParser.java index 9e87890..6f2423d 100644 --- a/java/gov/nist/javax/sip/parser/URLParser.java +++ b/java/gov/nist/javax/sip/parser/URLParser.java
@@ -666,6 +666,10 @@ } } return retval; + // BEGIN android-added + } catch (RuntimeException e) { + throw new ParseException("Invalid URL: " + lexer.getBuffer(), -1); + // END android-added } finally { if (debug) dbg_leave("sipURL");