Skip to content
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

NullReference exception when trying to resolve an object #49

Open
Miepee opened this issue May 2, 2022 · 0 comments
Open

NullReference exception when trying to resolve an object #49

Miepee opened this issue May 2, 2022 · 0 comments
Labels
bug Something isn't working decompiler Issues pertaining to the GML decompiler

Comments

@Miepee
Copy link
Contributor

Miepee commented May 2, 2022

These old bones crashes with a nullreference exception trying to decompile rm_prep_Create

Failed to decompile code for "gml_Room_rm_prep_Create": System.NullReferenceException: Object reference not set to an instance of an object.
   at DogScepterLib.Project.GML.Decompiler.MacroResolver.ResolveObject(DecompileContext ctx, ASTInt16 int16) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\MacroResolver.cs:line 364
   at DogScepterLib.Project.GML.Decompiler.ASTFunction.Clean(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 782
   at DogScepterLib.Project.GML.Decompiler.ASTFunctionVar.Clean(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 840
   at DogScepterLib.Project.GML.Decompiler.ASTBlock.BlockCleanup(DecompileContext ctx, List`1 nodes) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 177
   at DogScepterLib.Project.GML.Decompiler.ASTBlock.Clean(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 263
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileSegment(GMCode codeEntry, BlockList existingList) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 248
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileWholeEntry(GMCode codeEntry) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 207
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileWholeEntryString(GMCode codeEntry) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 186
   at DogScepterCLI.Commands.DumpCommand.<>c__DisplayClass36_1.<ExecuteAsync>b__0(GMCode elem) in C:\Users\narr\gitrepos\dog-scepter\DogScepterCLI\Commands\DumpCommand.cs:line 199
@colinator27 colinator27 added bug Something isn't working decompiler Issues pertaining to the GML decompiler labels May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working decompiler Issues pertaining to the GML decompiler
Projects
None yet
Development

No branches or pull requests

2 participants