1 2 3 4 5 6 7 8 9 10 11 12 13
|
Description: Fix a test failure with Java 8
Author: Emmanuel Bourg <ebourg@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();
}
|