diff --git a/Modules/Applications/AppClassification/app/otbComputeConfusionMatrix.cxx b/Modules/Applications/AppClassification/app/otbComputeConfusionMatrix.cxx
index 5f215b69f19de2280f3f93c5a46a5695d5d26ba5..2506be333b497490d33e124610ce27227f365ec8 100644
--- a/Modules/Applications/AppClassification/app/otbComputeConfusionMatrix.cxx
+++ b/Modules/Applications/AppClassification/app/otbComputeConfusionMatrix.cxx
@@ -31,6 +31,8 @@
 #include "otbContingencyTableCalculator.h"
 #include "otbContingencyTable.h"
 
+#include "otbMacro.h"
+
 namespace otb
 {
 namespace Wrapper
@@ -84,7 +86,7 @@ public:
 
 
 private:
-  Int32ImageType* m_Input = ITK_SP_NULLPTR;
+  Int32ImageType* m_Input = ITK_NULLPTR;
   Int32ImageType::Pointer m_Reference;
   RAMDrivenAdaptativeStreamingManagerType::Pointer m_StreamingManager;
   otb::ogr::DataSource::Pointer m_OgrRef;