From 50ccddb4e66db6d2801556c6710f5db6049e4a2d Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Tue, 11 Nov 2014 00:05:51 +0100 Subject: [PATCH] exception fixed in hexview --- src/com/jpexs/decompiler/flash/gui/hexview/HexView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/jpexs/decompiler/flash/gui/hexview/HexView.java b/src/com/jpexs/decompiler/flash/gui/hexview/HexView.java index b07599270..6cb63e4f3 100644 --- a/src/com/jpexs/decompiler/flash/gui/hexview/HexView.java +++ b/src/com/jpexs/decompiler/flash/gui/hexview/HexView.java @@ -228,6 +228,9 @@ public class HexView extends JTable { private int getIdxByColAndRow(int row, int col) { int idx = -1; + if (row < 0 || col < 0) { + return -1; + } if (col > 0 && col != bytesInRow + 1) { idx = row * bytesInRow + ((col > bytesInRow + 1) ? (col - bytesInRow - 2) : (col - 1)); }