Your message dated with message-id <20100713184531.10815.63133.mass-bugs-close@merkel.debian.org> and subject line gcj-4.3 removed from Debian unstable has caused the Debian Bug report #508643, regarding libgcj9-0: URI.equals() fails with NullPointerException to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 508643: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508643 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: libgcj9-0: URI.equals() fails with NullPointerException
- From: Jörg Sommer <joerg@alea.gnuu.de>
- Date: Sat, 13 Dec 2008 14:28:02 +0100
- Message-id: <20081213132802.GA24147@alea.gnuu.de>
Package: libgcj9-0 Version: 4.3.2-2 Severity: normal Hi, import java.net.URI; public class Test { public static void main(String arg[]) throws Exception { String a = "http://example.org/path"; String b = "http://example.org/path?q=query"; URI ua = new URI(a); URI ub = new URI(b); System.out.println( ua.equals(ub) ); } } % javac Test.java && java Test Exception in thread "main" java.lang.NullPointerException at java.net.URI.equals(URI.java:1215) at Test.main(Test.java:14) I think the problem is in these lines: else if (!opaqueThis && !opaqueObj) { boolean common = rawPath.equalsIgnoreCase(uriObj.getRawPath()) -> && ((rawQuery == null && uriObj.getRawQuery() == null) -> || rawQuery.equalsIgnoreCase(uriObj.getRawQuery())); if (rawAuthority == null && uriObj.getRawAuthority() == null) return common; In ua.rawQuery is null but ub.rawQuery is not, so the expression in the brace evaluates to false and the righthand side gets evaluated with dereferences ua.rawQuery and this causes the NullPointerException. I think you have to write something like this: && (rawQuery == uriObj.getRawQuery() || (rawQuery != null && rawQuery.equalsIgnoreCase(uriObj.getRawQuery()))); Bye, Jörg. -- System Information: Debian Release: unstable/experimental APT prefers unstable APT policy: (900, 'unstable'), (700, 'experimental') Architecture: powerpc (ppc) Kernel: Linux 2.6.28-rc7 Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libgcj9-0 depends on: ii gcj-4.3-base 4.3.2-2 The GNU Compiler Collection (gcj b ii libasound2 1.0.16-2 ALSA library ii libc6 2.7-16 GNU C Library: Shared libraries ii libgcc1 1:4.3.2-1 GCC support library ii libgcj-common 1:4.3.2-2 Java runtime library (common files ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime Versions of packages libgcj9-0 recommends: ii libgcj9-0-awt 4.3.2-2 AWT peer runtime libraries for use ii libgcj9-jar 4.3.2-2 Java runtime library for use with Versions of packages libgcj9-0 suggests: ii libgcj9-dbg 4.3.2-2 Debugging symbols for libraries pr -- no debconf informationAttachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP
--- End Message ---
--- Begin Message ---
- To: 511179-done@bugs.debian.org, 422569-done@bugs.debian.org, 468334-done@bugs.debian.org, 405937-done@bugs.debian.org, 470823-done@bugs.debian.org, 472973-done@bugs.debian.org, 401410-done@bugs.debian.org, 340651-done@bugs.debian.org, 487547-done@bugs.debian.org, 195344-done@bugs.debian.org, 466538-done@bugs.debian.org, 240550-done@bugs.debian.org, 464160-done@bugs.debian.org, 478886-done@bugs.debian.org, 397853-done@bugs.debian.org, 255525-done@bugs.debian.org, 506946-done@bugs.debian.org, 192035-done@bugs.debian.org, 504621-done@bugs.debian.org, 516267-done@bugs.debian.org, 555801-done@bugs.debian.org, 508643-done@bugs.debian.org, 519562-done@bugs.debian.org, 433051-done@bugs.debian.org, 464156-done@bugs.debian.org, 479310-done@bugs.debian.org, 386443-done@bugs.debian.org, 397817-done@bugs.debian.org, 553159-done@bugs.debian.org
- Cc: Sandro Tosi <morph@debian.org>
- Subject: gcj-4.3 removed from Debian unstable
- From: Sandro Tosi <morph@debian.org>
- Message-id: <20100713184531.10815.63133.mass-bugs-close@merkel.debian.org>
Version: 4.3.4-4+rm gcj-4.3 has been removed from Debian unstable: http://bugs.debian.org/577262 Closing its bugs with a Version higher than the last unstable upload. More information about this script at: http://git.debian.org/?p=users/morph/mass-bugs-close.git;a=blob_plain;f=README;hb=HEAD
--- End Message ---