diff --git a/interfaces/kits/js/src/mod_fs/class_randomaccessfile/ani/randomaccessfile_ani.cpp b/interfaces/kits/js/src/mod_fs/class_randomaccessfile/ani/randomaccessfile_ani.cpp index 953755eb25e79b383a94c5552e956520e719a761..197cebc27018a7777f7067fd85a3607f4dea7df1 100644 --- a/interfaces/kits/js/src/mod_fs/class_randomaccessfile/ani/randomaccessfile_ani.cpp +++ b/interfaces/kits/js/src/mod_fs/class_randomaccessfile/ani/randomaccessfile_ani.cpp @@ -320,9 +320,6 @@ static ani_object CreateReadStreamOptions(ani_env *env, int64_t start, int64_t e if (end >= 0) { env->Object_SetField_Int(obj, endField, end); } - if (obj == nullptr) { - HILOGE("CreateReadStreamOptions is nullptr"); - } return move(obj); }