Add null check
This commit is contained in:
parent
4643d2795a
commit
a2fe272cce
|
|
@ -3,6 +3,7 @@ package com.github.catvod.bean.upyun;
|
|||
import com.google.gson.Gson;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class Data {
|
||||
|
|
@ -17,10 +18,10 @@ public class Data {
|
|||
}
|
||||
|
||||
public Data getResult() {
|
||||
return result;
|
||||
return result == null ? new Data() : result;
|
||||
}
|
||||
|
||||
public List<Item> getItems() {
|
||||
return items;
|
||||
return items == null ? Collections.emptyList() : items;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
f39892c6cd9bc26eff6ad16ca21742c2
|
||||
df15e978327964a64d1b53511c33be91
|
||||
|
|
|
|||
Loading…
Reference in New Issue