Skip to content

CONECT/LINK line-length bug fix #2 for PDB Parser #760

@Sheraf-DNG

Description

@Sheraf-DNG

Hi All,

I'm working with custom PDB Files and I'm getting StringIndexOutOufBondsException from the PDBParser.
I've seen you rencently added this line in the PDBParser (conect_helper (String line,int start,int end) method) :

if line.length() < end) return null;

It'b be nice if to check the line.length() do not exeed the start arg, should be fixed by changing it to this (tested):

if (line.length() < start || line.length() < end) return null;

Thanks for the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs and bugfixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions