[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
From Flames To Fork, Comes Freedom • View topic - Unable to handle null condition in script callout

Unable to handle null condition in script callout

Help is preferred to those who publish their work as Open Source and not as private branches rejecting collaboration. Such projects are not maintainable and shall be deleted.
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are grouped together. IF YOU HAVE REGISTERED, you need to send email to red1(a)red1.org with your username in the subject title to get me to activate you.

Unable to handle null condition in script callout

Postby vivekjustthink » Wed Oct 24, 2012 2:13 pm

vivekjustthink
 
Posts: 21
Joined: Thu Oct 04, 2012 5:32 pm

Re: Unable to handle null condition in script callout

Postby globalqss » Wed Oct 24, 2012 9:24 pm

Hi Vivek, can you paste the complete code of the callout? To check how are you initializing the mproductid and qty variables.

Also, if the maximumQty is BigDecimal - then comparing to integer doesn't sound right.

I think also that beanshell has some special management for nulls - AFAIR there is a NULL object - maybe like this:
http://www.beanshell.org/javadoc/bsh/Pr ... .html#NULL

Regards,

Carlos Ruiz
globalqss
Senior
 
Posts: 599
Joined: Thu Dec 29, 2005 4:15 am
Location: Bogotá, Colombia

Re: Unable to handle null condition in script callout

Postby vivekjustthink » Wed Oct 24, 2012 11:16 pm

vivekjustthink
 
Posts: 21
Joined: Thu Oct 04, 2012 5:32 pm

Re: Unable to handle null condition in script callout

Postby red1 » Sat Nov 03, 2012 9:45 am

Thank you Vivek for rephrasing the answer. This is also helpful to me to learn something i did not know before. :)
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Re: Unable to handle null condition in script callout

Postby vivekjustthink » Sat Nov 03, 2012 12:45 pm

:D
vivekjustthink
 
Posts: 21
Joined: Thu Oct 04, 2012 5:32 pm


Return to HELP ME!!!

Who is online

Users browsing this forum: No registered users and 1 guest