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

System.NullReferenceException: #33

Open
SteliosLL opened this issue Jul 13, 2020 · 1 comment
Open

System.NullReferenceException: #33

SteliosLL opened this issue Jul 13, 2020 · 1 comment

Comments

@SteliosLL
Copy link

SteliosLL commented Jul 13, 2020

Καταγραφή
This is where i get the exception.

With most schematic files it works ok. But with some other schematic files i get this error "System.NullReferenceException"

@mstefarov
Copy link
Owner

You are most likely getting a NullReferenceException because root.Get(...) cannot find a tag named "Blocks". When a given tag cannot be found, root.Get(...) returns null. Trying to get ByteArrayValue from that null will throw a NullReferenceException.

Could you share an example .schematic file please? It's possible that the capitalization is wrong ("blocks" or "BLOCKS" is not the same as "Blocks") or that the tag is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants