File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
library/src/main/java/com/qiniu/android/common Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ public final class FixedZone extends Zone {
3333 new String []{"upload-z2.qbox.me" , "up-z2.qbox.me" },
3434 "z2" );
3535
36+ /**
37+ * 首尔机房
38+ */
39+ public static final Zone zoneNorthEast1 = new FixedZone (new String []{"upload-ap-northeast-1.qiniup.com" , "up-ap-northeast-1.qiniup.com" },
40+ null ,
41+ "ap-northeast-1" );
42+
3643 /**
3744 * 北美机房
3845 */
@@ -115,9 +122,12 @@ private ZonesInfo createZonesInfo(String[] upDomains,
115122
116123 List <String > upDomainsList = new ArrayList <String >(Arrays .asList (upDomains ));
117124 List <String > oldUpDomainsList = null ;
118- if (oldUpDomains != null ){
125+ if (oldUpDomains != null && oldUpDomains . length > 0 ){
119126 oldUpDomainsList = new ArrayList <String >(Arrays .asList (oldUpDomains ));
127+ } else {
128+ oldUpDomainsList = new ArrayList <>();
120129 }
130+
121131 ZoneInfo zoneInfo = ZoneInfo .buildInfo (upDomainsList , oldUpDomainsList , regionId );
122132 if (zoneInfo == null ) {
123133 return null ;
You can’t perform that action at this time.
0 commit comments