Browse Source

获取所有一步调拨单方法catch所有Exception

master
FoxV 3 years ago
parent
commit
b57cb9199f
  1. 2
      app/build.gradle
  2. 4
      app/src/main/java/com/icssoft/icspda/activity/INVTransActivity.java

2
app/build.gradle

@ -9,7 +9,7 @@ android {compileSdkVersion 30
applicationId "com.icssoft.icspda"
minSdkVersion 18
targetSdkVersion 28
versionCode 16
versionCode 17
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

4
app/src/main/java/com/icssoft/icspda/activity/INVTransActivity.java

@ -149,7 +149,7 @@ public class INVTransActivity extends AppCompatActivity {
result = HelpUtil.initList(TransType);
if (!TextUtils.isEmpty(result) && result.length() != 0){
applicationModel = new Gson().fromJson(result,ApplicationModel.class);
if (applicationModel.getSuccess()){
if (applicationModel.getSuccess() && applicationModel.getData() != null){
for (Data datum : applicationModel.getData()) {
mList.add(datum.getTransCode());
}
@ -159,7 +159,7 @@ public class INVTransActivity extends AppCompatActivity {
}
}
} catch (JsonSyntaxException e) {
} catch (Exception e) {
e.printStackTrace();
ErrorMsg = e.getMessage();
handler.sendEmptyMessage(99);

Loading…
Cancel
Save