Skip to content

Commit 1f4b8cd

Browse files
committed
robustness
1 parent c6de55a commit 1f4b8cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/ai/nets/samj/models/AbstractSamJ.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,8 @@ public List<Mask> processPoints(List<int[]> pointsList, List<int[]> pointsNegLis
787787
}
788788

789789
private List<int[]> adaptPointPrompts(List<int[]> pointsList) {
790+
if (pointsList == null)
791+
pointsList = new ArrayList<int[]>();
790792
pointsList = pointsList.stream().map(pp -> {
791793
int[] newPoint = new int[2];
792794
newPoint[0] = (int) Math.ceil((pp[0] - this.encodeCoords[0]) / (double) scale);

0 commit comments

Comments
 (0)