Browse Source

initDbo null case

tags/v0.1.2
Robin Thoni 8 years ago
parent
commit
853031ff44
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/Business/lu-webapi-crud-business.js

+ 3
- 0
src/Business/lu-webapi-crud-business.js View File

35
 
35
 
36
                 Business.initDbo = function(dbo)
36
                 Business.initDbo = function(dbo)
37
                 {
37
                 {
38
+                    if (dbo == null) {
39
+                        return null;
40
+                    }
38
                     return Business.extendDeep({}, Business.defaultDbo, dbo);
41
                     return Business.extendDeep({}, Business.defaultDbo, dbo);
39
                 };
42
                 };
40
 
43
 

Loading…
Cancel
Save