Skip to content

Commit

Permalink
add child thread crash
Browse files Browse the repository at this point in the history
  • Loading branch information
littleWhiteDuck committed Feb 27, 2023
1 parent f496035 commit 2a10ee9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/src/main/java/me/duck/hooktest/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ private void exitApp() {
break;
case 3:
throw new NullPointerException(getString(R.string.main_test_crash));
case 4:
new Thread(() -> {
throw new NullPointerException(getString(R.string.main_test_crash));
}).start();
break;
}
})
.show();
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<item>Finish()</item>
<item>System.exit()</item>
<item>killProcess()</item>
<item>Exception(Crash)</item>
<item>Crash(Main thread)</item>
<item>Crash(Child thread)</item>
</array>
</resources>

0 comments on commit 2a10ee9

Please sign in to comment.