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

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions