Skip to content

Commit 7a1b158

Browse files
committed
Removing some warnings from empty structure names
1 parent 637aee6 commit 7a1b158

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/align/multiple/MultipleAlignmentEnsembleImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ public MultipleAlignmentEnsembleImpl(AFPChain afp, Atom[] ca1, Atom[] ca2,
161161
this();
162162
// Copy all the creation and algorithm information
163163
atomArrays = Arrays.asList(ca1, ca2);
164-
if (afp.getName1() != null && afp.getName2() != null) {
164+
if (afp.getName1() != null && !afp.getName1().isEmpty() &&
165+
afp.getName2() != null && !afp.getName2().isEmpty()) {
165166
structureIdentifiers = Arrays.<StructureIdentifier> asList(
166167
new StructureName(afp.getName1()),
167168
new StructureName(afp.getName2()));

0 commit comments

Comments
 (0)