Skip to content

Commit 2360388

Browse files
committed
[java] Checking for null in realmType
1 parent 5303307 commit 2360388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/openqa/selenium/bidi/script/RealmInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static RealmInfo fromJson(JsonInput input) {
7676

7777
input.endObject();
7878

79-
if (realmType.equals(RealmType.WINDOW)) {
79+
if (realmType != null && realmType.equals(RealmType.WINDOW)) {
8080
return new WindowRealmInfo(
8181
realmId, origin, realmType, browsingContext, Optional.ofNullable(sandbox));
8282
}

0 commit comments

Comments
 (0)