Prevent crash

pull/191/head
M66B 4 years ago
parent ecd5baa66c
commit 86f2bc0d68

@ -7456,7 +7456,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
PrintJob job = printManager.print(jobName, adapter, new PrintAttributes.Builder().build()); PrintJob job = printManager.print(jobName, adapter, new PrintAttributes.Builder().build());
EntityLog.log(context, "Print queued job=" + job.getInfo()); EntityLog.log(context, "Print queued job=" + job.getInfo());
} catch (Throwable ex) { } catch (Throwable ex) {
try {
Log.unexpectedError(getParentFragmentManager(), ex, !(ex instanceof ActivityNotFoundException)); Log.unexpectedError(getParentFragmentManager(), ex, !(ex instanceof ActivityNotFoundException));
} catch (IllegalStateException exex) {
ToastEx.makeText(context, Log.formatThrowable(ex), Toast.LENGTH_LONG).show();
}
} finally { } finally {
printWebView = null; printWebView = null;
} }

Loading…
Cancel
Save