public static ApplicationSettings getMe() {
// ------------------------------------------
+ if (my == null) {
+ my = new ApplicationSettings();
+ }
return my; // The application is supposed being previously created below
}
logger.info("Application root set to "
+ wapprops.getProperty("wapp.root"));
- my = this;
- return this;
+ if (my == null) {
+ my = this;
+ }
+//RKV my = this;
+//RKV return this;
+ return my;
}
// ==============================================================================================================================
module.add(command);
String[] parsed = command.split("/");
String[] name = parsed[parsed.length - 1].split("\\x2E");
- String docname = my.defdoctype.get(
- step.getNumber() + "." + format).getName();
+ DocumentType dtype = my.defdoctype.get(
+ step.getNumber() + "." + format);
+ String docname = "";
+ if (dtype != null) {
+ docname = dtype.getName();
+ }
if (tempfile.get(docname) == null) { // No available template
String tool = parsed[parsed.length - 1];
String icon = name[0];