Fixed a NULL dereferencing bug.

This commit is contained in:
ands 2016-06-10 21:34:21 +02:00
parent a0f75bd5d9
commit 6e41aa6ce3
1 changed files with 1 additions and 1 deletions

View File

@ -15226,7 +15226,7 @@ nk_window_is_any_hovered(struct nk_context *ctx)
return 1;
}
/* check if window popup is being hovered */
if (iter->popup.active && nk_input_is_mouse_hovering_rect(&ctx->input, iter->popup.win->bounds))
if (iter->popup.active && iter->popup.win && nk_input_is_mouse_hovering_rect(&ctx->input, iter->popup.win->bounds))
return 1;
iter = iter->next;
}