mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
catch unlikely null sectionMode
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -365,6 +365,9 @@ public final class CEditorConstructed extends CDeckEditor<Deck> {
|
|||||||
* Switch between the main deck and the sideboard editor.
|
* Switch between the main deck and the sideboard editor.
|
||||||
*/
|
*/
|
||||||
public void setEditorMode(DeckSection sectionMode) {
|
public void setEditorMode(DeckSection sectionMode) {
|
||||||
|
if (sectionMode == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch(this.gameType) {
|
switch(this.gameType) {
|
||||||
case Constructed:
|
case Constructed:
|
||||||
switch(sectionMode) {
|
switch(sectionMode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user