[Debian-med-packaging] Bug#745085: biojava3-live: FTBFS with Java 8: NullPointerException at java.util.Collections$UnmodifiableCollection.<init>(Collections.java:1086)

Emmanuel Bourg ebourg at apache.org
Fri Aug 8 14:02:33 UTC 2014


Control: tags -1 patch

Here is a patch fixing this issue.

-------------- next part --------------
Description: Fix a test failure with Java 8
Author: Emmanuel Bourg <ebourg at apache.org>
Forwarded: no
--- a/biojava3-core/src/main/java/org/biojava3/core/sequence/location/template/AbstractLocation.java
+++ b/biojava3-core/src/main/java/org/biojava3/core/sequence/location/template/AbstractLocation.java
@@ -108,7 +108,7 @@
         this.circular = circular;
         this.betweenCompounds = betweenCompounds;
         this.accession = accession;
-        this.subLocations = Collections.unmodifiableList(subLocations);
+        this.subLocations = subLocations != null ? Collections.unmodifiableList(subLocations) : Collections.<Location>emptyList();
         assertLocation();
     }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140808/68f2f7c6/attachment.sig>


More information about the Debian-med-packaging mailing list