Skip to content
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

NullPointerException #5002

Closed
ZhangHaoChase opened this issue Jan 7, 2023 · 1 comment
Closed

NullPointerException #5002

ZhangHaoChase opened this issue Jan 7, 2023 · 1 comment

Comments

@ZhangHaoChase
Copy link

Glide Version: Glide 4.14.2

Integration libraries: OkHttp3

Device/Android Version:vivo/FUNTOUCH Android 11

Issue details / Repro steps / Use case background:

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...    Glide.with(context).load(picPath).apply(
                    RequestOptions.bitmapTransform(
                        BlurTransformation(context, 25f)
                    )
                ).into(imageView)

Layout XML:

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="211dp"
        android:background="#dddddd">
        <ImageView
            android:id="@+id/ivBzdBgImg"
            android:layout_width="match_parent"
            android:scaleType="centerCrop"
            android:background="#33000000"
            android:layout_centerInParent="true"
            android:layout_height="match_parent"/>

        <ImageView
            android:id="@+id/ivBzdImg"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginHorizontal="20dp"
            android:layout_centerInParent="true"
            android:scaleType="centerCrop"
            android:src="@mipmap/img_nor" />

        <TextView
            android:id="@+id/tvImgCover"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="8dp"
            android:background="@drawable/bg_cover"
            android:paddingHorizontal="6dp"
            android:paddingVertical="3dp"
            android:text="封面"
            android:textColor="@color/primaryTextColor"
            android:textSize="14sp" />

    </RelativeLayout>

Stack trace / LogCat: Argument must not be null

com.bumptech.glide.util.Preconditions.checkNotNull(Preconditions.java:29)

paste stack trace and/or log here
@sjudd
Copy link
Collaborator

sjudd commented Feb 13, 2023

Please include a complete stack trace, there's unfortunately not enough information here to figure out what's not working

@sjudd sjudd closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants