Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[API] Empty bio or gmnotes return 'null' instead of empty string

1522062732

Edited 1522068018
Jakob
Sheet Author
API Scripter
If you get the bio or gmnotes of a character object whose bio or gmnotes are empty, the callback function gets 'null' (the string 'null' , not null ) as its argument, instead of an empty string. While this is easy to guard against, it is quite misleading and unnecessary. EDIT: Oops, this was meant to go under Bug Reports.
1522088854
Ziechael
Forum Champion
Sheet Author
API Scripter
Jakob said: EDIT: Oops, this was meant to go under Bug Reports. Moved for you :)
Hi Jakob, I have submitted a tickets to the devs about this. Good catch!