Dexels / navajo

Navajo Service-oriented Applications
GNU Affero General Public License v3.0
9 stars 5 forks source link

When converting Navascript to NS3 check methods besides fields for existence of a reference in a map #602

Closed aschoneveld closed 3 years ago

aschoneveld commented 3 years ago
 public static boolean checkForDeclaredField(NavascriptTag myScript, MapTag map, String name) throws Exception {
                String adapterName = map.getAdapterName();
                String objectName = map.getObject();
                if ( adapterName != null ) {
                        return myScript.getMapChecker().isField(adapterName, name);
                }
                if ( objectName != null ) {
                        return myScript.getMapChecker().isDeclaredField(objectName, name);
                }
                return false;
        }
aschoneveld commented 3 years ago

Fixed