-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BucketAdapter空指针异常问题! #304
Comments
Get,thanks |
什么时候解决BucketAdapter.onBindViewHolder(BucketAdapter.java:64) |
按我那样,导入源码,先改源码呗 |
虽然我很想改源码以解决这个问题,但是down了1.1.3的源码下来结果居然没有适配androidx!!!! |
链接看不了呀!!!! |
谢谢了,现在图片可以打开了 |
这个问题只能改源码了吗? |
能跟我说下你是怎么修改的吗?我这边也遇到了这个问题 |
问题源码:
String bucketName = bucketBean.getBucketName();
if (position != 0) {
SpannableString nameSpannable = new SpannableString(bucketName + "\n" + bucketBean.getImageCount() + "张");
nameSpannable.setSpan(new ForegroundColorSpan(Color.GRAY), bucketName.length(), nameSpannable.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
nameSpannable.setSpan(new RelativeSizeSpan(0.8f), bucketName.length(), nameSpannable.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
holder.mTvBucketName.setText(nameSpannable);
}
问题描述及解决:nameSpannable.length()空指针异常
测试系统9.0;解决办法如图:
图一所示异常
图二异常点问题
图三图片存储位置
图四图片存在位置详情信息
图五源码解决办法
The text was updated successfully, but these errors were encountered: