You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if the problem is with Clang, but maybe there could be a better error message, at least?
The workaround is pretty simple: just delete the method body and run the bindgen again.
Tested in v0.0.20 (sn-bindgen-x86_64-pc-win32)
Stack trace:
java.lang.NullPointerException
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.(Unknown Source)
at <none>.clang_isTranslationUnit(Unknown Source)
at <none>.clang_isStatement(Unknown Source)
at <none>.clang_isDeclaration(Unknown Source)
at <none>.clang_disposeTranslationUnit(Unknown Source)
at <none>.clang_isTranslationUnit(Unknown Source)
at <none>.clang_isDeclaration(Unknown Source)
at <none>.clang_disposeTranslationUnit(Unknown Source)
at <none>.clang_isTranslationUnit(Unknown Source)
at <none>.clang_isTranslationUnit(Unknown Source)
at <none>.clang_isDeclaration(Unknown Source)
at <none>.clang_visitChildren(Unknown Source)
at <none>.clang_visitChildren(Unknown Source)
at <none>.clang_visitChildren(Unknown Source)
at <none>.clang_visitChildren(Unknown Source)
at <none>.clang_visitChildren(Unknown Source)
at <none>.(Unknown Source)
at <none>.clang_visitChildren(Unknown Source)
at <none>.clang_visitChildren(Unknown Source)
at <none>.BaseThreadInitThunk(Unknown Source)
at <none>.RtlUserThreadStart(Unknown Source)
The text was updated successfully, but these errors were encountered:
JD557
changed the title
Null pointer on fallthrough
Faills wth NullPointerException when there's fallthrough
Sep 9, 2023
JD557
changed the title
Faills wth NullPointerException when there's fallthrough
Faills with NullPointerException when there's fallthrough
Sep 9, 2023
The following piece of code makes bindgen fail with a null pointer exception:
https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_stdinc.h#L525-L551
From what I can tell, the problem seems to be with the
SDL_FALLTHROUGH
(https://github.com/libsdl-org/SDL/blob/SDL2/include/begin_code.h#L170-L189), but this is a bit hard to debug.Not sure if the problem is with Clang, but maybe there could be a better error message, at least?
The workaround is pretty simple: just delete the method body and run the bindgen again.
Tested in v0.0.20 (sn-bindgen-x86_64-pc-win32)
Stack trace:
The text was updated successfully, but these errors were encountered: