mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
fixed NPE that prevented Dredge from working
This commit is contained in:
@@ -37,7 +37,9 @@ public class GuiDialog {
|
|||||||
Callable<Boolean> confirmTask = new Callable<Boolean>() {
|
Callable<Boolean> confirmTask = new Callable<Boolean>() {
|
||||||
@Override
|
@Override
|
||||||
public Boolean call() throws Exception {
|
public Boolean call() throws Exception {
|
||||||
|
if ( null != c )
|
||||||
CMatchUI.SINGLETON_INSTANCE.setCard(c);
|
CMatchUI.SINGLETON_INSTANCE.setCard(c);
|
||||||
|
|
||||||
final String title = c == null ? "Question" : c.getName() + " - Ability";
|
final String title = c == null ? "Question" : c.getName() + " - Ability";
|
||||||
String questionToUse = StringUtils.isBlank(question) ? "Activate card's ability?" : question;
|
String questionToUse = StringUtils.isBlank(question) ? "Activate card's ability?" : question;
|
||||||
String[] opts = options == null ? defaultConfirmOptions : options;
|
String[] opts = options == null ? defaultConfirmOptions : options;
|
||||||
|
|||||||
Reference in New Issue
Block a user