bbcp
bbcp copied to clipboard
`NIL dereference` error for menu item "SQL" > "Help" in 2.0 tiled interface
When clicking menu item "SQL" > "Help" in BlackBox-2.0-a1.098
(tiled interface) under Windows 11, a NIL dereference
error will be occurred, which I think is a regression, as it works in bbcb-1.8-b1.166
, and also BlackBoxMDI-2.0-a1.098
.
Thanks again for checking out BB 2.0 and pointing this out! I cannot reproduce it on my development version, so let's ask Ivan to look into this first.
Ivan, could you look into this issue?
Following patch will fix this problem:
--- a/Std/Mod/Windows.odc
+++ b/Std/Mod/Windows.odc
@@ -1285,7 +1285,7 @@ MODULE StdWindows;
VAR v, w: Windows.Window;
BEGIN
w := s.home;
- IF (w = NIL) OR (st = w.doc) OR (st = w.doc.ThisView()) THEN
+ IF (w = NIL) OR (st = w.doc) OR (w.doc = NIL) OR (st = w.doc.ThisView()) THEN
RETURN TRUE
ELSE
v := w.link;
trial fix in version 2.0-a1.099, thanks to @adimetrius I did not see side effects for two days, so decided to commit. Anton said there was a problem, because of sequencers. Maybe he can give more accurate comment about provided fix.
Fix confirmed, thanks!