We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 846c13f commit f04effaCopy full SHA for f04effa
biojava-structure/src/main/java/org/biojava/nbio/structure/PDBStatus.java
@@ -70,7 +70,7 @@ public enum Status {
70
* @throws IllegalArgumentException If the string is not recognized
71
*/
72
public static Status fromString(String statusStr) {
73
- if (statusStr == null) return null;
+ if (statusStr == null) throw new IllegalArgumentException("Status string can't be null");
74
if(statusStr.equalsIgnoreCase("REMOVED"))
75
return Status.REMOVED;
76
else if(statusStr.equalsIgnoreCase("CURRENT"))
0 commit comments