Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@ -686,7 +686,7 @@ Error ExportTemplateManager::install_android_template_from_file(const String &p_
|
||||
zlib_filefunc_def io = zipio_create_io(&io_fa);
|
||||
|
||||
unzFile pkg = unzOpen2(p_file.utf8().get_data(), &io);
|
||||
ERR_FAIL_COND_V_MSG(!pkg, ERR_CANT_OPEN, "Android sources not in ZIP format.");
|
||||
ERR_FAIL_NULL_V_MSG(pkg, ERR_CANT_OPEN, "Android sources not in ZIP format.");
|
||||
|
||||
int ret = unzGoToFirstFile(pkg);
|
||||
int total_files = 0;
|
||||
|
||||
Reference in New Issue
Block a user