cpm-vhc opened a new issue, #7244:
URL: https://github.com/apache/hop/issues/7244

   ### Apache Hop version?
   
   2.17.0
   
   ### Java version?
   
   openjdk 21.0.11 2026-04-21 LTS OpenJDK Runtime Environment 
Microsoft-13877187 (build 21.0.11+10-LTS) OpenJDK 64-Bit Server VM 
Microsoft-13877187 (build 21.0.11+10-LTS, mixed mode, sharing)
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   Using Linux AlmaLinux 9.7
   
   I was trying to achieve CSV parsing with enclosure and deduplication of 
double quotes inside the string of a field
   example : "this is a ""nice"" comment" => this is a "nice" comment
   
   With Escape parameter not empty, deduplication does not happen => this is a 
""nice"" comment
   But without Escape parameter (empty), I have null pointer exception at 
`TextFileLineUtil.matchChar`
   
   Reproduce with attached csv et hpl files :
   
[test_text_file_input_enclosure.csv](https://github.com/user-attachments/files/28570649/test_text_file_input_enclosure.csv)
   
[test_text_file_input_enclosure.hpl.txt](https://github.com/user-attachments/files/28570655/test_text_file_input_enclosure.hpl.txt)
   
   Full error :
   2026/06/04 17:01:45 - HopRun - Referencing environment 'Dev2' for project 
example' in Development
   2026/06/04 17:01:45 - HopRun - Enabling project 'example'
   2026/06/04 17:01:45 - HopRun - Relative path filename specified: 
/opt/example/data/test_text_file_input_enclosure.hpl
   2026/06/04 17:01:45 - HopRun - Starting pipeline: 
/opt/example/data/test_text_file_input_enclosure.hpl
   2026/06/04 17:01:45 - test_text_file_input_enclosure - Executing this 
pipeline using the Local Pipeline Engine with run configuration 'local'
   2026/06/04 17:01:45 - test_text_file_input_enclosure - Execution started for 
pipeline [test_text_file_input_enclosure]
   2026/06/04 17:01:46 - Text file input.0 - Opening file: 
file:///opt/example/data/test_text_file_input_enclosure.csv
   2026/06/04 17:01:46 - Text file input.0 - ERROR: Couldn't open file #0 : 
file:///opt/example/data/test_text_file_input_enclosure.csv
   2026/06/04 17:01:46 - Text file input.0 - ERROR: 
org.apache.hop.core.exception.HopFileException: 
   2026/06/04 17:01:46 - Text file input.0 - 
   2026/06/04 17:01:46 - Text file input.0 - Exception reading line: 
java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because 
"pattern" is null
   2026/06/04 17:01:46 - Text file input.0 - Cannot invoke "String.isEmpty()" 
because "pattern" is null
   2026/06/04 17:01:46 - Text file input.0 - 
   2026/06/04 17:01:46 - Text file input.0 - Cannot invoke "String.isEmpty()" 
because "pattern" is null
   2026/06/04 17:01:46 - Text file input.0 - 
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.ui.pipeline.transform.common.TextFileLineUtil.getLine(TextFileLineUtil.java:130)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transforms.fileinput.text.TextFileInputReader.tryToReadLine(TextFileInputReader.java:459)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transforms.fileinput.text.TextFileInputReader.readInitial(TextFileInputReader.java:144)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transforms.fileinput.text.TextFileInputReader.<init>(TextFileInputReader.java:97)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transforms.fileinput.text.TextFileInput.createReader(TextFileInput.java:58)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transforms.fileinput.text.TextFileInput.createReader(TextFileInput.java:41)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transforms.file.BaseFileInputTransform.openNextFile(BaseFileInputTransform.java:135)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transforms.file.BaseFileInputTransform.processRow(BaseFileInputTransform.java:170)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
   2026/06/04 17:01:46 - Text file input.0 -    at 
java.base/java.lang.Thread.run(Thread.java:1583)
   2026/06/04 17:01:46 - Text file input.0 - Caused by: 
java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because 
"pattern" is null
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.ui.pipeline.transform.common.TextFileLineUtil.matchChar(TextFileLineUtil.java:364)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.ui.pipeline.transform.common.TextFileLineUtil.handleBreaksInEnclosure(TextFileLineUtil.java:378)
   2026/06/04 17:01:46 - Text file input.0 -    at 
org.apache.hop.ui.pipeline.transform.common.TextFileLineUtil.getLine(TextFileLineUtil.java:97)
   2026/06/04 17:01:46 - Text file input.0 -    ... 9 more
   2026/06/04 17:01:46 - Text file input.0 - Finished processing (I=0, O=0, 
R=0, W=0, U=0, E=1)
   2026/06/04 17:01:46 - test_text_file_input_enclosure - Pipeline duration : 
0.353 seconds [  0.353" ]
   HopRun exit.
   
   It's been discussed on [discussions#7224](https://github.com/apache/hop/) too
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Actions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to