mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-23 13:55:46 +00:00
hex view - listener is null checks
This commit is contained in:
@@ -293,14 +293,18 @@ public class HexView extends JTable {
|
||||
byteNum = data.length - 1;
|
||||
}
|
||||
scrollToByte(byteNum);
|
||||
listener.byteValueChanged((int) byteNum, data[(int) byteNum]);
|
||||
if (listener != null) {
|
||||
listener.byteValueChanged((int) byteNum, data[(int) byteNum]);
|
||||
}
|
||||
}
|
||||
|
||||
public void selectBytes(long byteNum, int length) {
|
||||
selectionStart = (int) byteNum;
|
||||
selectionEnd = (int) (byteNum + length - 1);
|
||||
scrollToByte(new long[]{byteNum}, new long[]{byteNum + length - 1});
|
||||
listener.byteValueChanged((int) byteNum, getData()[(int) byteNum]);
|
||||
if (listener != null) {
|
||||
listener.byteValueChanged((int) byteNum, getData()[(int) byteNum]);
|
||||
}
|
||||
getModel().fireTableDataChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user