updated for version 7.0070
diff --git a/src/screen.c b/src/screen.c
index b2e1181..58fb4d0 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -2603,7 +2603,10 @@
 	}
     }
 
-    if (wp->w_p_spell && *wp->w_buffer->b_p_spl != NUL)
+    if (wp->w_p_spell
+	    && *wp->w_buffer->b_p_spl != NUL
+	    && wp->w_buffer->b_langp.ga_len > 0
+	    && *(char **)(wp->w_buffer->b_langp.ga_data) != NULL)
     {
 	/* Prepare for spell checking. */
 	has_spell = TRUE;