Skip to content

Commit

Permalink
avoid unchecked null
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Nov 1, 2024
1 parent 062190f commit 13451c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public boolean isBusy() {
}

public boolean isSetUpForUpdates() {
int result = template.queryForObject("SELECT count(*) FROM pg_tables WHERE tablename = 'photon_updates'", Integer.class);
return result > 0;
Integer result = template.queryForObject("SELECT count(*) FROM pg_tables WHERE tablename = 'photon_updates'", Integer.class);
return (result != null) && (result > 0);
}

public void setUpdater(Updater updater) {
Expand Down

0 comments on commit 13451c8

Please sign in to comment.