Comments (5)
It is possible if you implement a custom converter that returns null. The default converter throws an exception when something wrong happened.
from alligator.
I have this exception
I get ScreenResolver from AndroidNavigator
When I call screenResolver.getScreen(). Returned screen is null and kotlin code throws NPE
Version of navigator is 1.0.0 =)
from alligator.
It is hard to say what could have happened. Version 1.0.0 was released more than an year ago.
Is it a crash from your Crashlytics? Do you succeed to reproduce it?
Btw, I recommend you to use newer version of Alligator.
from alligator.
@aartikov I don't can to reproduce
Ok. I think the best way is to put try-catch and update version of library
from alligator.
Starting from Alligator 3.0.0 getScreen
never returns null. It throws an exception if something goes wrong. There is also getScreenOrNull(activity)
method now.
from alligator.
Related Issues (20)
- Question: How to get the activity result from a fragment? HOT 1
- Handle result if activity is destroyed HOT 10
- Nested fragment ScreenSwitcher HOT 1
- Integration with AAC Navigator HOT 1
- Fragment BackStack Handling HOT 4
- Navigation tree HOT 2
- Kotlin HOT 2
- Translucent activity not finished with result HOT 4
- It makes sense to have a method returning the current screen (and maybe the activity/fragment) on AndroidNavigator? HOT 1
- AndroidX HOT 3
- Can an Instagram Like navigation be done with this Library HOT 2
- Cannot generate Class HOT 1
- Help Needed HOT 8
- screenResolver.getScreen() returns null HOT 4
- [Improvement] Make a new navigator method to keep already loaded Fragments. HOT 1
- Pop fragments/screens if HOT 2
- Fragments and ViewPager HOT 3
- Passing ScreenResult from one fragment to another fragment HOT 9
- "Race condition" when using switchTo() HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alligator.