Skip to content

Commit 2d35faa

Browse files
committed
add protection for an empty share to protect against https://bugs.amahi.org/issues/1447
1 parent 407dae8 commit 2d35faa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/amahi/anywhere/server/client/ServerClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ public void getShares() {
185185
}
186186

187187
public void getFiles(ServerShare share) {
188+
// protect against possibly empty share structure
189+
// seen in the field a few times https://bugs.amahi.org/issues/1447
190+
if (share == null) return;
188191
serverApi.getFiles(server.getSession(), share.getName(), null, new ServerFilesResponse(null));
189192
}
190193

0 commit comments

Comments
 (0)