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

Drag drop Codon alignment file, but it disappears #9

Open
walterxie opened this issue Nov 18, 2022 · 1 comment
Open

Drag drop Codon alignment file, but it disappears #9

walterxie opened this issue Nov 18, 2022 · 1 comment
Labels

Comments

@walterxie
Copy link
Contributor

Drag drop the file to panel. After select the genetic code, the file seems disappear.

AlignmentListInputEditor needs to improve:

table.setOnDragDropped((DragEvent event) -> {
           Dragboard db = event.getDragboard();
       	if (db.hasFiles()) {
       		addItem(db.getFiles().toArray(new File[] {}));
           } else {
               event.setDropCompleted(false);
           }
           event.consume();
       });
` ``
@walterxie walterxie added the bug label Nov 18, 2022
@walterxie
Copy link
Contributor Author

A wired exception using drag-drop, but not happened if load from File menu.

Could not find beastObject with id treeLikelihood.codon. Typo in template perhaps?

Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot read field "dataInput" because "likelihood" is null
	at beastfx.app.inputeditor.AlignmentListInputEditor.addItem(AlignmentListInputEditor.java:1195)
	at beastfx.app.inputeditor.AlignmentListInputEditor.lambda$init$0(AlignmentListInputEditor.java:162)
	at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
	at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)

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

No branches or pull requests

1 participant