Fixed
Status Update
Comments
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit f2e4216df36a3fc7b122d78265961caf0a8f9092
Author: Ian Lake <ilake@google.com>
Date: Mon Sep 23 16:25:56 2019
Improve error message for Activity.navArgs()
Rather than print out the Intent twice,
print out the Activity class and then the Intent.
Test: new ActivityTest test
BUG: 141408999
Change-Id: I7788273dbdbbad13b8a8450e90d71ea3ccc3a684
M navigation/navigation-runtime-ktx/src/androidTest/java/androidx/navigation/ActivityTest.kt
M navigation/navigation-runtime-ktx/src/main/java/androidx/navigation/ActivityNavArgsLazy.kt
https://android-review.googlesource.com/1127438
https://goto.google.com/android-sha1/f2e4216df36a3fc7b122d78265961caf0a8f9092
Branch: androidx-master-dev
commit f2e4216df36a3fc7b122d78265961caf0a8f9092
Author: Ian Lake <ilake@google.com>
Date: Mon Sep 23 16:25:56 2019
Improve error message for Activity.navArgs()
Rather than print out the Intent twice,
print out the Activity class and then the Intent.
Test: new ActivityTest test
BUG: 141408999
Change-Id: I7788273dbdbbad13b8a8450e90d71ea3ccc3a684
M navigation/navigation-runtime-ktx/src/androidTest/java/androidx/navigation/ActivityTest.kt
M navigation/navigation-runtime-ktx/src/main/java/androidx/navigation/ActivityNavArgsLazy.kt
Description
>> Activity.navArgs()
>>>> Line 42 Redundant call to `this` in the exception message
IllegalStateException("Activity $this has null extras in $this")
..Leading to log message such as:
Caused by: java.lang.IllegalStateException: Activity Intent { cmp=
---
Component used: Navigation
Version used: 2.2.0-alpha03