I am using ini4j 0.3.2 to generate INI Files from database values (users
have a special form to enter the values).
If the key is defined but the value is null then I get the following:
java.lang.NullPointerException
at org.ini4j.Convert.escape(Convert.java:25)
at org.ini4j.Ini.store(Ini.java:250)
Well there is an easy workaround for me: I never put null values to the
section but use "" instead.
Nevertheless it would be nice if ini4j could handle this case. For example
changing Ini.java:250 to:
pr.println(e.getValue()==null ? "" :
Convert.escape(e.getValue()));
worked for my situation.
thanx,walter
Nobody/Anonymous
None
None
Public
|
Date: 2009-02-05 21:36 Fixed in version 0.3.3 |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-02-05 21:36 | szkiba |
| resolution_id | None | 2009-02-05 21:36 | szkiba |
| allow_comments | 1 | 2009-02-05 21:36 | szkiba |
| close_date | - | 2009-02-05 21:36 | szkiba |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use