harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r373824 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLDecoder.java
Date Tue, 31 Jan 2006 14:38:51 GMT
Author: tellison
Date: Tue Jan 31 06:38:48 2006
New Revision: 373824

URL: http://svn.apache.org/viewcvs?rev=373824&view=rev
Log:
Check for null decode encoding scheme.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLDecoder.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLDecoder.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLDecoder.java?rev=373824&r1=373823&r2=373824&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLDecoder.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLDecoder.java
Tue Jan 31 06:38:48 2006
@@ -69,6 +69,9 @@
 	public static String decode(String s, String enc)
 			throws UnsupportedEncodingException {
 
+		if (enc == null) {
+			throw new NullPointerException();
+		}
 		StringBuffer result = new StringBuffer(s.length());
 		ByteArrayOutputStream out = new ByteArrayOutputStream();
 		for (int i = 0; i < s.length();) {



Mime
View raw message