diff --git a/app/src/main/java/net/christianbeier/droidvnc_ng/ListenIfAdapter.java b/app/src/main/java/net/christianbeier/droidvnc_ng/ListenIfAdapter.java index 42cb18e..c25b25a 100644 --- a/app/src/main/java/net/christianbeier/droidvnc_ng/ListenIfAdapter.java +++ b/app/src/main/java/net/christianbeier/droidvnc_ng/ListenIfAdapter.java @@ -174,7 +174,7 @@ public View getView(int position, View convertView, ViewGroup parent) { @Override public NetworkInterfaceData getItem(int position) { - if (0 <= position && position <= this.getCount()) { + if (0 <= position && position < this.getCount()) { return this.data.get(position); } return null;