From: Michael D. Lowis Date: Thu, 22 Dec 2016 02:29:45 +0000 (-0500) Subject: fixed issue where scrolling calls a null pointer X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=208f9b58d1775ebe639727129d9c5879cd286b2a;p=projs%2Ftide.git fixed issue where scrolling calls a null pointer --- diff --git a/xedit.c b/xedit.c index f36d2fb..3eea775 100644 --- a/xedit.c +++ b/xedit.c @@ -235,7 +235,8 @@ static void mouse_handler(MouseAct act, MouseBtn btn, int x, int y) { MouseBtns[btn].count = 1; } else if (MouseBtns[btn].count > 0) { /* execute the action on button release */ - MouseActs[btn](id, MouseBtns[btn].count, row, col); + if (MouseActs[btn]) + MouseActs[btn](id, MouseBtns[btn].count, row, col); } } }