Skip to content

Commit

Permalink
ListenIfAdapter: fix for method getCount()
Browse files Browse the repository at this point in the history
  • Loading branch information
elluisian committed Aug 27, 2024
1 parent 4349b19 commit 1a1571c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a1571c

Please sign in to comment.