Permalink
Browse files

dragonfly: only write config items with nv pairs.

  • Loading branch information...
1 parent 0c8ed98 commit 5bc497175e51b5d0c4373aec328d7e1a57fee196 @kgilmer kgilmer committed Aug 3, 2011
@@ -232,14 +232,16 @@ private File createFelixConfFile(ILaunchConfiguration configuration, IPath launc
props.putAll(getFelixLaunchProperties());
- for (Iterator i = props.keySet().iterator(); i.hasNext();) {
- String key = (String) i.next();
+ for (Iterator<String> i = props.keySet().iterator(); i.hasNext();) {
+ String key = i.next();
String val = props.get(key);
- fw.write(key);
- fw.write('=');
- fw.write(val);
- fw.write('\n');
+ if (key != null && key.length() > 0 && val != null && val.length() > 0) {
+ fw.write(key);
+ fw.write('=');
+ fw.write(val);
+ fw.write('\n');
+ }
}
fw.close();

0 comments on commit 5bc4971

Please sign in to comment.