return null;
}
String soneId = (String) session.getAttribute("Sone.CurrentSone");
+ if (soneId == null) {
+ return null;
+ }
for (Sone sone : webInterface.core().getSones()) {
if (sone.getId().equals(soneId)) {
return sone;
}
/**
+ * {@inheritDoc}
+ */
+ @Override
+ protected String getShortcutIcon() {
+ return "images/icon.png";
+ }
+
+ /**
* Returns whether this page requires the user to log in.
*
* @return {@code true} if the user is required to be logged in to use this