mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Fixed NPE error on new systems;
This commit is contained in:
parent
e885bd0e02
commit
43ebdf9e94
1 changed files with 4 additions and 2 deletions
|
|
@ -200,9 +200,11 @@ public class WhatsNewDialog extends MageDialog {
|
||||||
}.getType();
|
}.getType();
|
||||||
try {
|
try {
|
||||||
httpCookies = gson.fromJson(sourceValue, type);
|
httpCookies = gson.fromJson(sourceValue, type);
|
||||||
|
if (httpCookies != null) {
|
||||||
for (HttpCookie cookie : httpCookies) {
|
for (HttpCookie cookie : httpCookies) {
|
||||||
store.add(URI.create(cookie.getDomain()), cookie);
|
store.add(URI.create(cookie.getDomain()), cookie);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Wrong news page cookies", e);
|
logger.error("Wrong news page cookies", e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue