File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
VideoOS/VenvyLibrary/src/main/java/cn/com/venvy Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public void startDownloadZipFile(JSONArray luaUrls) {
6969 if (callback != null ) {
7070 callback .updateComplete (new JSONArray ());
7171 }
72+ VenvyLog .i (TAG , "down zip json failure,because down zip urls is null" );
7273 return ;
7374 }
7475 //检查 需要下载的Url
@@ -119,12 +120,15 @@ public void onPreExecute() {
119120
120121 @ Override
121122 public void onPostExecute (List <String > urls ) {
123+ CacheZipUpdateCallback callback = getCacheLuaUpdateCallback ();
122124 if (urls == null ) {
125+ if (callback != null ) {
126+ callback .updateError (new Exception ("update zip error,发生未知错误" ));
127+ }
123128 return ;
124129 }
125130 List <String > zipUrlArray = getAllZipUrls (zipUrls );
126131 if (urls .size () == 0 ) {
127- CacheZipUpdateCallback callback = getCacheLuaUpdateCallback ();
128132 List <File > zipFiles = getZipFilesWithUrl (zipUrlArray );
129133 if (zipFiles == null || zipFiles .size () <= 0 ) {
130134 if (callback != null ) {
@@ -211,7 +215,9 @@ public void onPostExecute(List<String> cacheUrls) {
211215 }
212216 }
213217 }
214- callback .updateComplete (queryArray );
218+ if (callback != null ) {
219+ callback .updateComplete (queryArray );
220+ }
215221 }
216222
217223 @ Override
You can’t perform that action at this time.
0 commit comments