Explorar el Código

avoid NPE looking up geo when not activated

tags/v0.1.8
Jonathan Cobb hace 4 años
padre
commit
187f17fb48
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 Ver fichero

@@ -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


Cargando…
Cancelar
Guardar