AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Jsongather crash
 
 

The following code will cause CS to crash

u: (crash)
 $
$tmp = ^jsonparse("{}")
 ^
jsongather(@10 $$tmp

The crash is in jsonGather() because a member of the FACT struct is accessed without checking to see that the FACT actually exists.

In my code base I’ve just extended the line

if (!|| !(F->flags JSON_FLAGS)) return; // not a json fact 

 

 

 
  [ # 1 ]

fixed for next release - I did that + allowed a 0 length factset on return.

 

 
  login or register to react