From ff9114c031bd3b555b34ce2352d7a3c5b3b8f545 Mon Sep 17 00:00:00 2001 From: Tom van Dijck Date: Fri, 19 May 2017 14:35:30 -0700 Subject: [PATCH] [self-test] fix nil dereference crash in test.isequal --- modules/self-test/test_assertions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/self-test/test_assertions.lua b/modules/self-test/test_assertions.lua index 32f97d56..461e28cd 100644 --- a/modules/self-test/test_assertions.lua +++ b/modules/self-test/test_assertions.lua @@ -140,7 +140,7 @@ end else if (expected ~= actual) then - m.fail(depth, "expected %s but was %s", expected, actual) + m.fail(depth, "expected %s but was %s", expected, actual or "nil") end end return true