It is an error because Java API says that getProperty()
returns null when property is not set.

Reported-by: Pekka Enberg <penb...@cs.helsinki.fi>
Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/jato.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/vm/jato.c b/vm/jato.c
index 37ccd66..1b5aa8e 100644
--- a/vm/jato.c
+++ b/vm/jato.c
@@ -165,6 +165,9 @@ static void add_system_property_const(const char *key, 
const char *value)
        char *key_d;
        char *value_d;
 
+       if (value == NULL)
+               value = "";
+
        key_d = strdup(key);
        value_d = strdup(value);
 
-- 
1.6.0.6


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to