diff --git a/sdk/src/main/java/com/wonderpush/sdk/inappmessaging/display/InAppMessagingDisplay.java b/sdk/src/main/java/com/wonderpush/sdk/inappmessaging/display/InAppMessagingDisplay.java
index <HASH>..<HASH> 100644
--- a/sdk/src/main/java/com/wonderpush/sdk/inappmessaging/display/InAppMessagingDisplay.java
+++ b/sdk/src/main/java/com/wonderpush/sdk/inappmessaging/display/InAppMessagingDisplay.java
@@ -373,6 +373,7 @@ public class InAppMessagingDisplay extends InAppMessagingDisplayImpl {
             new View.OnClickListener() {
               @Override
               public void onClick(View v) {
+                if (inAppMessage == null) return;
                 if (callbacks != null) {
                   callbacks.messageClicked(actions);
                 }
Fix NPE when clicking an in-app message during its exit animation