Member since
06-20-2016
13
Posts
1
Kudos Received
0
Solutions
09-01-2016
03:41 AM
Hi, My flowFile seems to be null although its being generated in a previous GetFile processor. Creating a script like yours logs me a NullPointerException error in the session.transfer line as flowFile appears to be null. I modified the script to log and in the logs I'm seeing that the flowfile seems to be null. What workaround can I make? flowFile = session.get()
if (flowFile != None):
log.info('is not null') # This is not being logged
flowFile = session.write(flowFile, ModJSON())
else:
log.info('is null') # This is being logged
session.transfer(flowFile, REL_SUCCESS) # NullPointerException thrown here
session.commit()
... View more