Fixed NPE error on new systems;
@@ -200,9 +200,11 @@ public class WhatsNewDialog extends MageDialog {
}.getType();
try {
httpCookies = gson.fromJson(sourceValue, type);
+ if (httpCookies != null) {
for (HttpCookie cookie : httpCookies) {
store.add(URI.create(cookie.getDomain()), cookie);
}
+ }
} catch (Exception e) {
logger.error("Wrong news page cookies", e);
}
