fixed crash during crash report

This commit is contained in:
Christian Schabesberger 2016-02-29 21:13:02 +01:00
parent f90a1ede70
commit 3c93c4714e
1 changed files with 6 additions and 1 deletions

View File

@ -187,7 +187,12 @@ public class ErrorActivity extends AppCompatActivity {
globIpRangeThread = new Thread(new IpRagneRequester());
globIpRangeThread.start();
errorMessageView.setText(errorInfo.message);
if(errorInfo.message != 0) {
errorMessageView.setText(errorInfo.message);
} else {
errorMessageView.setVisibility(View.GONE);
findViewById(R.id.messageWhatHappenedView).setVisibility(View.GONE);
}
}
@Override