-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.enhancement-breaking-changeAn enhancement which is breaking.An enhancement which is breaking.library-_http
Description
Change
Change:
class RedirectException implements HttpException {
- Uri get uri => ...
+ Uri? get uri => ...
}Rationale
This will allow us to cleanly fix #49012, which causes a StateError when there is no available uri.
Impact
This will only break code that uses the RedirectException class directly and does not handle the null uri case.
Code that works with the HttpException base class will not need to be changed because uri is already nullable in that class.
This change does not break any Google code or any third-party code used by Google.
Mitigation
Users must handle a possible null return from RedirectException.uri.
natebosch
Metadata
Metadata
Assignees
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.enhancement-breaking-changeAn enhancement which is breaking.An enhancement which is breaking.library-_http