diff -urN /tmp/orig/sablevm-classlib-1.1.9/debian/changelog /tmp/dfsg/sablevm-classlib-1.1.9.dfsg1/debian/changelog --- /tmp/orig/sablevm-classlib-1.1.9/debian/changelog 2005-03-14 14:44:58.219271552 -0600 +++ /tmp/dfsg/sablevm-classlib-1.1.9.dfsg1/debian/changelog 2005-03-14 14:53:18.503216832 -0600 @@ -1,3 +1,12 @@ +sablevm-classlib (1.1.9.dfsg1-0.1) unstable; urgency=high + + * Non-maintainer upload + * Patched upstream source with patch from BTS to solve + NullPointerException in MessageFormat.format RC bugs (Closes: + #299121, #297665, #299125, #285203) + + -- Micah Anderson <[EMAIL PROTECTED]> Sun, 13 Mar 2005 00:41:36 -0600 + sablevm-classlib (1.1.9-1) unstable; urgency=high * New upstream release
Additionally, I patched the upstream source (improperly, I should have patched to provide a .diff.gz with the changes), the patch I used was the one in #299121: diff -ru sablevm-classlib-1.1.9/java/text/DecimalFormatSymbols.java sablevm-classlib-1.1.9-fixed/java/text/DecimalFormatSymbols.java --- sablevm-classlib-1.1.9/java/text/DecimalFormatSymbols.java 2005-01-20 10:27:39.000000000 -0500 +++ sablevm-classlib-1.1.9-fixed/java/text/DecimalFormatSymbols.java 2005-03-12 17:11:35.000000000 -0500 @@ -148,7 +148,16 @@ { res = null; } - setCurrency(Currency.getInstance(loc)); + + Currency currency = Currency.getInstance(loc); + // some locales don't have a currency instance, such as "en" + // only call setCurrency if if a currency instance exists + // to prevent a null pointer exception + // [EMAIL PROTECTED] 2005/03/12 + if( currency != null ) + { + setCurrency(Currency.getInstance(loc)); + } decimalSeparator = safeGetChar (res, "decimalSeparator", '.'); digit = safeGetChar (res, "digit", '#'); exponential = safeGetChar (res, "exponential", 'E'); Micah
signature.asc
Description: Digital signature