X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FProfiles.java;h=14eae5114f735e13884aa7c287eb79d3f8edafbb;hb=refs%2Fheads%2Fbug%2FJAL-2934proportionalScrolling;hp=f65830a11b76c8866f434e8c259d2e96d65b7f97;hpb=5776cb3b3d74f3c3d3d791d56287d8d78e46b01b;p=jalview.git diff --git a/src/jalview/datamodel/Profiles.java b/src/jalview/datamodel/Profiles.java index f65830a..14eae51 100644 --- a/src/jalview/datamodel/Profiles.java +++ b/src/jalview/datamodel/Profiles.java @@ -38,7 +38,8 @@ public class Profiles implements ProfilesI @Override public ProfileI get(int col) { - return profiles != null && col >= 0 && col < profiles.length ? profiles[col] + return profiles != null && col >= 0 && col < profiles.length + ? profiles[col] : null; }