Avoid NPE in SessionState.X.merge

This commit is contained in:
0xboobface 2018-11-09 18:19:59 +01:00
parent 9db844b5d1
commit dc540c795a
1 changed files with 6 additions and 2 deletions

View File

@ -37,8 +37,12 @@ public class X {
if(x == null) {
return;
}
fcext.merge(x.fcext);
share.merge(x.share);
if (fcext != null) {
fcext.merge(x.fcext);
}
if (share != null) {
share.merge(x.share);
}
additionalProperties.putAll(x.additionalProperties);
}