Skip to content

NullPointerException parsing Jython scripts with hanging brackets #11

@artgolden

Description

@artgolden

image

When the script has ) on an empty line. There has to be some specific surrounding, but I am not sure which. Attaching an example file with this behavior.

If you remove bracket on an empty line in this expression:

        logging.info("New file \n%s\n Full path:\n%s\n Original name: \n%s\n Original path: \n%s\n" % (new_file_name,
                                                                                                     os.path.join(
                                                                                                         direction_dirs[embryo_direction - 1], new_file_name),
                                                                                                    file_name,
                                                                                                    file_path)
                    )

the error disappears.
nullexception_bracket.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions