Skip to content

Commit

Permalink
Merge pull request #962 from support-project/issue952_fix_update
Browse files Browse the repository at this point in the history
#952 Fix null pointer exception
  • Loading branch information
koda-masaru authored Nov 20, 2017
2 parents fdbf8b7 + 9a1ab9d commit 6350739
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public Boundary create() {
UserConfigsDao.get().save(config);
} else {
UserConfigsEntity config = UserConfigsDao.get().selectOnKey(UserConfig.STEALTH_ACCESS, AppConfig.get().getSystemName(), user.getUserId());
if (stealth != null) {
if (stealth != null && config != null) {
UserConfigsDao.get().physicalDelete(config);
}
}
Expand Down Expand Up @@ -315,7 +315,7 @@ public Boundary save() {
UserConfigsDao.get().save(config);
} else {
UserConfigsEntity config = UserConfigsDao.get().selectOnKey(UserConfig.STEALTH_ACCESS, AppConfig.get().getSystemName(), user.getUserId());
if (stealth != null) {
if (stealth != null && config != null) {
UserConfigsDao.get().physicalDelete(config);
}
}
Expand Down

0 comments on commit 6350739

Please sign in to comment.