diff --git a/board_enable.c b/board_enable.c
index aa463bc4063950606415359b0b0d316ceefc87cc..0e89137dacc9d6f6354de4092221c1df7e468044 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -1445,7 +1445,7 @@ int board_flash_enable(const char *vendor, const char *part)
 	if (!board)
 		board = board_match_pci_card_ids();
 
-        if (board->status == NT) {
+        if (board && board->status == NT) {
                 if (!force_boardenable)
                 {
                         printf("WARNING: Your mainboard is %s %s, but the mainboard-specific\n"