From: <mie...@us...> - 2008-07-23 02:42:29
|
Revision: 2766 http://oorexx.svn.sourceforge.net/oorexx/?rev=2766&view=rev Author: miesfeld Date: 2008-07-23 02:42:39 +0000 (Wed, 23 Jul 2008) Log Message: ----------- Fix null pointer crash. Modified Paths: -------------- interpreter-3.x/trunk/kernel/runtime/Numerics.cpp Modified: interpreter-3.x/trunk/kernel/runtime/Numerics.cpp =================================================================== --- interpreter-3.x/trunk/kernel/runtime/Numerics.cpp 2008-07-23 00:06:08 UTC (rev 2765) +++ interpreter-3.x/trunk/kernel/runtime/Numerics.cpp 2008-07-23 02:42:39 UTC (rev 2766) @@ -263,7 +263,7 @@ // get this as a numberstring (which it might already be) RexxNumberString *nString = source->numberString(); // not convertible to number string? get out now - if (source == OREF_NULL) + if (nString == OREF_NULL) { return false; } @@ -381,7 +381,7 @@ // get this as a numberstring (which it might already be) RexxNumberString *nString = source->numberString(); // not convertible to number string? get out now - if (source == OREF_NULL) + if (nString == OREF_NULL) { return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |