1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-29 21:42:33 +01:00

fixed crash during crash report

This commit is contained in:
Christian Schabesberger 2016-02-29 21:13:02 +01:00
parent f90a1ede70
commit 3c93c4714e

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