File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
core/src/main/java/oracle/weblogic/deploy/yaml Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017, 2018 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2017, 2019 , Oracle and/or its affiliates. All rights reserved.
3
3
* The Universal Permissive License (UPL), Version 1.0
4
4
*/
5
5
package oracle .weblogic .deploy .yaml ;
@@ -72,7 +72,11 @@ public void enterAssign(YamlParser.AssignContext ctx) {
72
72
PyObject value = getAssignValue (name , ctx );
73
73
74
74
PyDictionary container = currentDict .peek ();
75
- container .__setitem__ (new PyString (name ), value );
75
+
76
+ // null indicates not parsable, Py.None would be returned for legitimate cases
77
+ if (value != null ) {
78
+ container .__setitem__ (new PyString (name ), value );
79
+ }
76
80
}
77
81
78
82
/**
You can’t perform that action at this time.
0 commit comments