为 CocosDownloader.java 添加必要的 null check. #17911
Open
+8
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
解决 GlobalObject.getContext() 为 null 时, 下载任务出错的bug.
目前 3.8.4 版本 构建的 安卓原生app 运行时 偶尔会出现下列错误, 导致程序异常:
此 PR 尝试解决该问题.
虽然提到了 3.8.6 , 但是希望 3.8.5 就能解决.
另外 不知道 iOS 版本是否也有类似问题.
如果有 麻烦 cocos官方修复下.