File tree Expand file tree Collapse file tree
src/main/java/fr/igred/omero/meta Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010 <groupId >fr.igred</groupId >
1111 <artifactId >simple-omero-client</artifactId >
12- <version >5.12.1 </version >
12+ <version >5.12.2 </version >
1313 <packaging >jar</packaging >
1414
1515 <name >Simple OMERO Client</name >
Original file line number Diff line number Diff line change 3333import java .util .Collections ;
3434import java .util .Iterator ;
3535import java .util .List ;
36+ import java .util .Objects ;
3637import java .util .function .Function ;
3738import java .util .stream .Collectors ;
3839
@@ -143,6 +144,7 @@ public static Length getMinPosition(Collection<? extends PlaneInfoWrapper> plane
143144 List <Double > positions = planesInfo .stream ()
144145 .map (getter )
145146 .map (UnitsFactory ::convertLength )
147+ .filter (Objects ::nonNull )
146148 .map (p -> p .value (unit ).doubleValue ())
147149 .collect (Collectors .toList ());
148150 Double pos = positions .isEmpty () ? 0.0d : Collections .min (positions );
You can’t perform that action at this time.
0 commit comments