diff --git a/Modules/IO/IOJPEG2000/src/otbJPEG2000ImageIO.cxx b/Modules/IO/IOJPEG2000/src/otbJPEG2000ImageIO.cxx
index 0850c2a6673db8dd8cb99005b68c7b8345bb7000..d67338ea19be4d6d62da49f7afbe4c2aec58eaeb 100644
--- a/Modules/IO/IOJPEG2000/src/otbJPEG2000ImageIO.cxx
+++ b/Modules/IO/IOJPEG2000/src/otbJPEG2000ImageIO.cxx
@@ -302,7 +302,7 @@ int JPEG2000InternalReader::Open(const char *filename, unsigned int resolution)
   this->m_FileName = str;
 
   // Open the file
-  if (!this->m_FileName.empty())
+  if (this->m_FileName.empty())
     {
     this->Clean();
     return 0;