Skip to content

NullPointerException is thrown when a script file contains empty lines at the end of file #1257

@czpilar

Description

@czpilar

4.0.0 GA

Consider two files:

  1. c:/shell.txt with content:
    @c:/shell2.txt
    help
    
  2. c:/shell2.txt with content where there are empty lines at the end:
    help
    
    
    

In shell run script -- c:/shell.txt it ends with Unable to run command script: Cannot invoke "String.isEmpty()" because "input" is null.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions