We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961ab69 commit cce669fCopy full SHA for cce669f
app/src/main/java/com/duy/ide/PagePresenter.java
@@ -180,7 +180,7 @@ public void removePage(String path) {
180
181
@Override
182
public void removePage(int position) {
183
- if (position >= mPageAdapter.getCount()) {
+ if (position >= mPageAdapter.getCount() || position < 0) {
184
return;
185
}
186
Fragment existingFragment = mPageAdapter.getExistingFragment(position);
0 commit comments