Commit 6da2d08f authored by Finn Herzfeld's avatar Finn Herzfeld 🌵

Merge branch 'master' into 'master'

fixed NPE exception deriving from unhandled base case in SocketHandler.listAccounts

See merge request !74
parents e5090bd1 dbf32b6c
Pipeline #2546 passed with stages
in 9 minutes and 43 seconds
......@@ -245,9 +245,11 @@ public class SocketHandler implements Runnable {
private void listAccounts(JsonRequest request) throws JsonProcessingException, IOException {
// We have to create a manager for each account that we're listing, which is all of them :/
File[] users = new File(data_path + "/data").listFiles();
for(int i = 0; i < users.length; i++) {
if(!users[i].isDirectory()) {
getManager(users[i].getName());
if(users != null) {
for(int i = 0; i < users.length; i++) {
if(!users[i].isDirectory()) {
getManager(users[i].getName());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment