Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 37c0da7

Browse files
author
Tarek
committed
added not null check
1 parent 85df767 commit 37c0da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudnet-cord/cloudnet-cloudflare/src/main/java/de/dytanic/cloudnet/cloudflare/database/CloudFlareDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public boolean isAccepted(MultiValue<PostResponse, String> value)
7676
MultiValue<PostResponse, String> value = document.getObject(key, new TypeToken<MultiValue<PostResponse, String>>() {
7777
}.getType());
7878

79-
if (value.getSecond().equalsIgnoreCase(wrapper) && value.getFirst().getCloudFlareConfig().getDomainName().equalsIgnoreCase(cloudFlareConfig.getDomainName()))
79+
if (value != null && value.getSecond().equalsIgnoreCase(wrapper) && value.getFirst().getCloudFlareConfig().getDomainName().equalsIgnoreCase(cloudFlareConfig.getDomainName()))
8080
return true;
8181
}
8282

0 commit comments

Comments
 (0)