Error: access violation accessing 0x0 reading fields #122
Replies: 3 comments
-
If console.log(`beatmaps = ${beatmaps.handle}`); |
Beta Was this translation helpful? Give feedback.
-
Yeah I guess you're right beatmaps = 0x0 I had it in my mind that it must be set because of something previously that I've forgotten but I guess not. :/ |
Beta Was this translation helpful? Give feedback.
-
At this point you either have to wait for that field to be not null or to manually create it if it is: const beatmaps = beatmapSelection.fields._beatmaps;
if ((beatmaps.value as Il2Cpp.Object).isNull()) {
beatmaps.value = beatmaps.type.class.new();
} But this choice depends on what you are trying to do. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following code for Beatstar (https://play.google.com/store/apps/details?id=com.spaceapegames.beatstar&hl=en&gl=US) fails to work.
TransactionStep is an instance of GachaBoxTransactionStep where get_GachaBox returns a com.spaceape.flamingo.model.GachaBoxTO.
The above code prints:
Why can't I access any of these fields?
Beta Was this translation helpful? Give feedback.
All reactions