genericworkflownodes / GenericKnimeNodes

Base package for GenericKnimeNodes
https://github.com/genericworkflownodes/GenericKnimeNodes
Other
15 stars 16 forks source link

Null pointer exception for Nodes with no provided input but a required output prefix #259

Closed kneubert closed 5 years ago

kneubert commented 5 years ago

com.genericworkflownodes.knime.base.data.port.FileStorePrefixURIPortObject.getPrefix public String getPrefix() returns 'null' null_pointer_exception.txt

kneubert commented 5 years ago

260 this seems to fix it. I tested it with my node (which has a prefix port as output and an optional file input port).

fix_npe

kneubert commented 5 years ago

The problem does not exist with the recent GKN version, because of fallback: GenericKnimeNodeModel.java (line 926) // If everything fails, use the nodename (generating type of nodes) return m_nodeConfig.getName(); // + "_out" + outputIndex + iterationSuffix;