mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Fix NPE (#12190)
This commit is contained in:
parent
d645facdc0
commit
8771d9b7f5
1 changed files with 4 additions and 1 deletions
|
|
@ -415,7 +415,10 @@ public class HumanPlayer extends PlayerImpl {
|
|||
}
|
||||
if (source != null) {
|
||||
//options.put(Constants.Option.ORIGINAL_ID, "")
|
||||
autoAnswerMessage = autoAnswerMessage.replace(getRelatedObjectName(source, game), "{this}");
|
||||
String sourceName = getRelatedObjectName(source, game);
|
||||
if (sourceName != null) {
|
||||
autoAnswerMessage = autoAnswerMessage.replace(sourceName, "{this}");
|
||||
}
|
||||
}
|
||||
|
||||
options.put(Constants.Option.AUTO_ANSWER_MESSAGE, autoAnswerMessage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue