We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f7e2d8 commit 553acbfCopy full SHA for 553acbf
loopbanner/src/main/java/com/wenjian/loopbanner/LoopBanner.java
@@ -433,6 +433,9 @@ private void startInternal(boolean force) {
433
434
private void seekToOriginPosition() {
435
final LoopAdapter adapter = getAdapter();
436
+ if(adapter == null){
437
+ return;
438
+ }
439
//如果是刚开始自动轮播,先将页面定位到合适的位置
440
setProperIndex(adapter.getDataSize(), 100);
441
mLayoutManager.scrollToPositionWithOffset(mCurrentIndex, mLrMargin);
0 commit comments