PANE_DROP
if (wp->flags & (PANE_REDRAW|PANE_DROP))
if (wp != NULL && (wp->flags & (PANE_REDRAW|PANE_DROP)))