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 5e998c6 commit e84c6feCopy full SHA for e84c6fe
src/main/java/com/kosherjava/zmanim/util/GeoLocation.java
@@ -101,6 +101,9 @@ public void setElevation(double elevation) {
101
if (elevation < 0) {
102
throw new IllegalArgumentException("Elevation cannot be negative");
103
}
104
+ if (Double.isNaN(elevation) || Double.isInfinite(elevation)) {
105
+ throw new IllegalArgumentException("Elevation must not be NaN or infinite");
106
+ }
107
this.elevation = elevation;
108
109
0 commit comments