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

NullPointerException #1103

Closed
DavePearce opened this issue Oct 19, 2021 · 0 comments
Closed

NullPointerException #1103

DavePearce opened this issue Oct 19, 2021 · 0 comments
Assignees
Labels
Projects

Comments

@DavePearce
Copy link
Member

DavePearce commented Oct 19, 2021

The following typos generates a NullPointerException with wy:

type Board is { bool[][] cells }

method set(Board b, int x, int y):
    b[y][x] = true

Reported error is:

Exception in thread "main" java.lang.NullPointerException
        at wycc.lang.SyntacticException.outputSourceError(SyntacticException.java:122)
        at wycli.Main.exec(Main.java:253)
        at wycli.Main.main(Main.java:224)

Note that this requires at least a two dimensional array to trigger.

@DavePearce DavePearce self-assigned this Oct 19, 2021
@DavePearce DavePearce added the Bug label Oct 19, 2021
@DavePearce DavePearce added this to TODO in WDK v0.6.0 Oct 25, 2021
@DavePearce DavePearce moved this from TODO to DOING in WDK v0.6.0 Oct 29, 2021
WDK v0.6.0 automation moved this from DOING to DONE Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant