Skip to content

Commit 6889ca7

Browse files
luke czaplaluke czapla
authored andcommitted
just minor forgotten exception line
1 parent d09b552 commit 6889ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/basepairs/BasePairParameters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public Double getSlide(int bp) {
370370
* @return the value as a double (in Å)
371371
*/
372372
public Double getRise(int bp) {
373-
if (bp < 0 || bp >= getStepParameters().length) return null;
373+
if (bp < 0 || bp >= getStepParameters().length) throw new IllegalArgumentException();
374374
return stepParameters[bp][5];
375375
}
376376

0 commit comments

Comments
 (0)