1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-20 23:41:45 +02:00

Handle invalid user being selected in config

Fixed #218
This commit is contained in:
Erik Johansson
2018-03-08 16:38:39 +01:00
parent 65824e8ed2
commit 3014ceb2a2

View File

@@ -183,6 +183,10 @@ public class OpenScale {
final int selectedUserId = getSelectedScaleUserId();
if (selectedUserId != -1) {
selectedScaleUser = userDAO.get(selectedUserId);
if (selectedScaleUser == null) {
selectScaleUser(-1);
throw new Exception("could not find the selected user");
}
return selectedScaleUser;
}
} catch (Exception e) {