Project

General

Profile

Actions

Bug #3569

closed

Trying to assign categories to a question for assessment fails when not running from within Morpho

Added by Ryan McFall about 16 years ago. Updated about 16 years ago.

Status:
Resolved
Priority:
Normal
Category:
parser
Target version:
Start date:
10/25/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3569

Description

When I select a question on a newly parsed exam and then click the "Add Category" button, I get the following stack strace:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at edu.ucsb.nceas.morpho.first.plugins.wizard.EdMLWizardContainerFrame.getDialogParent(EdMLWizardContainerFrame.java:998)
at edu.ucsb.nceas.morpho.first.plugins.wizard.pages.KeywordsPage.<init>(KeywordsPage.java:70)
at edu.ucsb.nceas.morpho.first.plugins.wizard.EdMLWizardPageLibrary.getPage(EdMLWizardPageLibrary.java:112)
at edu.msu.first.parser.gui.actions.AddCategoryAction.actionPerformed(AddCategoryAction.java:60)

It appears that the problem is that UIController.getInstance() (called from EdMLWizardContainerFrame.getDialogParent) returns null outside the context of Morpho.

I propose that if UIController.getInstance() returns null that we use MainWindow.getInstance() as the dialog parent here.

Actions

Also available in: Atom PDF