Skip to content

Commit d867b7c

Browse files
author
Dianne Hackborn
committed
Fix issue #17783882: AUPT: NPE in Videos: Attempt to invoke virtual method...
...'java.lang.String java.lang.String.substring(int)' on a null object reference Change-Id: I4a78653174da398a4edd23b2bc099598548b79c2
1 parent 1e2e430 commit d867b7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/java/android/os/StrictMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ private static class LogStackTrace extends Exception {}
17251725
for (int i = 0; i < numViolations; ++i) {
17261726
if (LOG_V) Log.d(TAG, "strict mode violation stacks read from binder call. i=" + i);
17271727
ViolationInfo info = new ViolationInfo(p, !currentlyGathering);
1728-
if (info.crashInfo.stackTrace.length() > 10000) {
1728+
if (info.crashInfo.stackTrace != null && info.crashInfo.stackTrace.length() > 10000) {
17291729
// 10000 characters is way too large for this to be any sane kind of
17301730
// strict mode collection of stacks. We've had a problem where we leave
17311731
// strict mode violations associated with the thread, and it keeps tacking

0 commit comments

Comments
 (0)