Index: fpdfsdk/fsdk_actionhandler.cpp |
diff --git a/fpdfsdk/fsdk_actionhandler.cpp b/fpdfsdk/fsdk_actionhandler.cpp |
index 912bc40c7fadebd032dd3e15d45a692e652b5efd..bc6bd2826cda6b0509814e6d2274b38293bd7074 100644 |
--- a/fpdfsdk/fsdk_actionhandler.cpp |
+++ b/fpdfsdk/fsdk_actionhandler.cpp |
@@ -223,7 +223,7 @@ FX_BOOL CPDFSDK_ActionHandler::IsValidField(CPDFSDK_Document* pDocument, |
CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm(); |
CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); |
- return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL; |
+ return !!pPDFInterForm->GetFieldByDict(pFieldDict); |
} |
FX_BOOL CPDFSDK_ActionHandler::ExecuteFieldAction( |