summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uimain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/uimain.c')
-rw-r--r--src/emu/uimain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/uimain.c b/src/emu/uimain.c
index 5460c61fdea..1029c722e3c 100644
--- a/src/emu/uimain.c
+++ b/src/emu/uimain.c
@@ -1182,7 +1182,7 @@ void ui_menu_settings_dip_switches::custom_render(void *selectedref, float top,
ioport_field *field = (ioport_field *)selectedref;
dip_descriptor *dip;
- if (field->first_diplocation() == NULL)
+ if (field!=NULL && field->first_diplocation() == NULL)
return;
/* add borders */