SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2002
    Location
    NY
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    isNull() function causes coredump

    isNull( "" )

    Found in SilkTest 5.0.3.

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: isNull() function causes coredump

    Why were you calling IsNull with a literal string as the parameter? For one thing the documentation for the IsNull function says you should use a variable there, and secondly I can't see what the use is of calling it on a literal string.

    ------------------

  3. #3
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: isNull() function causes coredump

    It happens sometimes that a coder makes the incorrect assumption that NULL and "" are one and the same, just as non-coders tend to think of 0 as "nothing." Not so, however, since the empty strind IS a value while NULL is the absence thereof. So, in a sense by placing the empty string in the IsNull, you have guaranteed a non-NULL return.

    Now, why Silk is blowing chunks in 5.0.3 when you call that, I have no idea. Seems it should just return FALSE and move on.

    ------------------

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: isNull() function causes coredump

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by DJGray:
    Now, why Silk is blowing chunks in 5.0.3 when you call that, I have no idea. Seems it should just return FALSE and move on.
    <HR></BLOCKQUOTE>

    Which is exactly what it does in 6.x.


    John



    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:43 AM.

Copyright BetaSoft Inc.