Skip to content

Commit 41b3741

Browse files
authored
Merge pull request #33 from cansik/master
Prevents null-pointer exception if server is not yet initialised
2 parents d36fcaf + bf53e2c commit 41b3741

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/codeanticode/syphon/SyphonServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ protected void finalize() throws Throwable {
9393
* @return boolean
9494
*/
9595
public boolean hasClients() {
96+
if(server == null)
97+
return false;
98+
9699
return server.hasClients();
97100
}
98101

0 commit comments

Comments
 (0)