mirror of https://github.com/apache/nifi.git
NIFI-2675 fixed NPE in template generation
This closes #951. Signed-off-by: Andy LoPresto <alopresto@apache.org>
This commit is contained in:
parent
957c120343
commit
7879a99206
|
@ -214,7 +214,7 @@ public class FlowSnippetDTO {
|
|||
Map<String, PropertyDescriptorDTO> map = csDTO.getDescriptors();
|
||||
Map<String, String> props = csDTO.getProperties();
|
||||
for (Entry<String, PropertyDescriptorDTO> entry : map.entrySet()) {
|
||||
if (entry.getValue().getIdentifiesControllerService() != null) {
|
||||
if (entry.getValue().getIdentifiesControllerService() != null && props.get(entry.getKey()) != null) {
|
||||
String key = entry.getKey();
|
||||
String value = props.get(key);
|
||||
id = UUID.fromString(value);
|
||||
|
|
Loading…
Reference in New Issue