Prevent NPE during migration, when profile key is null

This commit is contained in:
AsamK 2021-05-12 19:34:09 +02:00
parent 21d62c4557
commit 3fc5bec149
3 changed files with 3 additions and 2 deletions

View file

@ -241,6 +241,7 @@ public class App {
} catch (NotRegisteredException e) {
throw new UserErrorException("User " + username + " is not registered.");
} catch (Throwable e) {
logger.debug("Loading state file failed", e);
throw new UnexpectedErrorException("Error loading state file for user "
+ username
+ ": "