details: https://code.openbravo.com/erp/devel/pi/rev/0e82e9b7585a
changeset: 17698:0e82e9b7585a
user: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at>
openbravo.com>
date: Thu Aug 16 17:58:49 2012 +0530
summary: Fixes Issue 21246: Null Pointer Exception while Installing Modules
Handled pending case, when the source path points to an existing folder with
write permissions but that does not contain the Openbravo sources.
diffstat:
src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r e62c79a1253e -r 0e82e9b7585a
src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
--- a/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java Wed Aug
15 18:38:46 2012 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java Thu Aug
16 17:58:49 2012 +0530
@@ -2643,6 +2643,8 @@
File model = new File(sources, "src-db/database/model/tables");
if (model.exists()) {
modelFiles.add(model);
+ } else {
+ throw new
OBException(Utility.messageBD(this,"WrongPathError",vars.getLanguage()));
}
for (File moduleFile : (new File(sources, "modules").listFiles())) {
File mmodel = new File(moduleFile, "src-db/database/model/tables");
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits