Procházet zdrojové kódy

avoid NPE looking up geo when not activated

tags/v0.1.8
Jonathan Cobb před 4 roky
rodič
revize
187f17fb48
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. +1
    -0
      bubble-server/src/main/java/bubble/service/cloud/GeoService.java

+ 1
- 0
bubble-server/src/main/java/bubble/service/cloud/GeoService.java Zobrazit soubor

@@ -174,6 +174,7 @@ public class GeoService {
if (found != null) return json(found, GeoTimeZone.class);

if (acct.get() == null) acct.set(accountDAO.getFirstAdmin());
if (acct.get() == null) throw new SimpleViolationException("err.activation.required");
List<CloudService> geoServices = cloudDAO.findByAccountAndType(acct.get().getUuid(), CloudServiceType.geoTime);
if (geoServices.isEmpty() && !account.admin()) {
// try to find using admin


Načítá se…
Zrušit
Uložit