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

Error occurred loading the document: TypeError: Cannot read property 'Resource' of null #17

Open
alexeyOnGitHub opened this issue Jul 13, 2017 · 1 comment

Comments

@alexeyOnGitHub
Copy link

alexeyOnGitHub commented Jul 13, 2017

I'm opening an MSP xml file created by my own app (not by MSP).
popup is shown by this viewer:

Error occurred loading the document: TypeError: Cannot read property 'Resource' of null

now, I admit that the resources section is properly not filled out correctly yet (I'm experimenting with a new version of my app that creates MSP xml files and resources section is most likely not processed properly at the moment), but it would be nice if NULL/undefined Resources did not prevent loading for the rest of the file.
sample problem file: https://gist.github.com/alexeyOnGitHub/5f6ad9b532bec5d96b59f1e03f0c5889

@saf001
Copy link

saf001 commented Dec 7, 2017

I'm not sure if this is the same problem that I had (open XML file located on the http server), but the fix for me was to replace loadFromDom with loadFromXml in the handleHttpOpen function.

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