testing for null parameter resulting in crash [message #1201721] |
Thu, 21 November 2013 17:09  |
Eclipse User |
|
|
|
Hello,
I created a report parameter that could be left blank. It shows up with a check mark beside it that says "no value". I leave it blank and check "no value", and then try to test whether nor not it's null in the script:
if (params["myParam"] == null)
{
print("myParam is null");
}
else
{
print("myParam is not null");
}
But instead of printing out a message, it crashes.
I know my print() function works. I've been using it for months. If even checking the parameter for a null value causes it to crash, how can I test for a null value?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04066 seconds