-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KSP] NullPointerException #600
Comments
Hi @nazarabd3005 👋 I need a little help here. Could you please try a special version I made just to test this? It should have more logs in the build tab so we can try to see what exactly is null and why. Version It is still building right now, I'll let you know as soon as it's available. |
It's up @nazarabd3005. |
Hi @raamcosta
|
Hi again @nazarabd3005 Can you please open file:
And show me its contents? It seems like there is an annotation More specifically, it seems like it is something like this: @_Info_<something>(
moduleName = "",
packageName = ????
typeResults = [
_Destination_Result_Info_<something>(
destination = InsurerListBottomScreenDestination::class, // 👈 this is what I got from logs, it should be here
resultType = ??WHAT IS THIS??, // 👈 I need to know what is this
isResultNullable = ????
)
],
topLevelGraphs = [
????
]
)
object _ModuleRegistry_<something> where Thank you! |
hi @raamcosta
|
Is there something specific to "DebiturTypeEvent"? Is it a class maybe from another module or something like that? |
Does the module that uses this module have access to it? I believe I may know the reason and how to fix it, but I'm curious. |
Yes, the DebiturTypeEvent is in another module |
Ok thank you so much for helping me debug this. I am already working on a fix. Should be up in like an hour or so! |
No worries 👍 |
For what it's worth, this means that this Destination |
Maybe need to move DebiturTypeEvent to feature module so app module can access the class |
If you want your app module to be able to call this destination and get result from it, something like that is needed. That said, the library shouldn't fail just because you have a public modal destination that you're not using on a client module. Luckily, it's an easy fix :) |
Once 2.0.0-alpha06 is up, I'll post it here and then please test it and let me know that it works! Thank you once again 🙏 |
It's up! Let me know it works now :) |
"Hey,
|
Do you see ksp task running for this module? |
Seems I’m able to reproduce this. Sorry I’m on it, I’ll let you know 🙏 thank you again |
In the mean time add this code and it should work
one thing though: is this graph “main” the one you want to pass to DestinationsNavHosf? Or does root contain anything else? if it is the one to pass to the NavHost, then it needs to be annotated with @NavHostGraph. Instead of |
(Found the issue! It was a missing commit on 2.0.0 version.. 2.1.0 has a commit that fixes fixes this but I forgot to include it on this branch 😅. I’ll make a new version!) |
2.0.0-alpha07 is up for a while now. Let me know if things look good now! |
Hi @raamcosta |
That’s great news! Thank you 🙏 |
HI @raamcosta ,
I getting this error when building the App module.
currently use:
v.2.0.0-alpha05
The text was updated successfully, but these errors were encountered: