fixed NPE that prevented Dredge from working

This commit is contained in:
Maxmtg
2013-04-11 05:05:34 +00:00
parent 9bf4140589
commit 9f6d1f5247

View File

@@ -37,7 +37,9 @@ public class GuiDialog {
Callable<Boolean> confirmTask = new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
if ( null != c )
CMatchUI.SINGLETON_INSTANCE.setCard(c);
final String title = c == null ? "Question" : c.getName() + " - Ability";
String questionToUse = StringUtils.isBlank(question) ? "Activate card's ability?" : question;
String[] opts = options == null ? defaultConfirmOptions : options;