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

Loading of file.xml failed. Cannot read the array length because "this.patternIndex" is null. #1171

Open
mrmancuso opened this issue Oct 24, 2024 · 1 comment

Comments

@mrmancuso
Copy link

I get the following error message whenever I create an .xml file in BEAUti and then I try to open it up again for further editing: Loading of file.xml failed: Cannot read the array length because "this.patternIndex" is null. Cannot invoke "org.w3c.dom.Node.getNodeValue()" because the return value of "org.w3c.m.NamedNodeMap.getNamedItem(String)" is null". This only happens when the .xml was created with a partitioned NEXUS file with multiple genes. BEASTLabs is installed and updated on my 2024 MacBook Pro. Could you help me out? Thank you in advance.

@rbouckaert
Copy link
Member

@mrmancuso thanks for the bug report! Unfortunately, I have trouble replicating the problem. If I do the following:

  • open BEAUti and import Primates.nex from the BEAST.app/examples/nexus folder. This has 2 partitions.
  • link trees and clock models
  • save the XML
  • restart BEAUti and load the XML

there is no problem or error message. Can you give more details on what you did before the error appeared? Cheers, Remco

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