Skip to content

Commit cce669f

Browse files
committed
fix crash when delete file
1 parent 961ab69 commit cce669f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/duy/ide/PagePresenter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void removePage(String path) {
180180

181181
@Override
182182
public void removePage(int position) {
183-
if (position >= mPageAdapter.getCount()) {
183+
if (position >= mPageAdapter.getCount() || position < 0) {
184184
return;
185185
}
186186
Fragment existingFragment = mPageAdapter.getExistingFragment(position);

0 commit comments

Comments
 (0)