Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

fun queueNextImage -> Fatal error: Unexpectedly found nil while unwrapping an Optional value: file #20

@steve111MV

Description

@steve111MV

Fatal error: Unexpectedly found nil while unwrapping an Optional value: file Pods/KenBurns/KenBurns/Classes/KenBurns.swift, line 327

I'm not using a Queue but the library is trying to load a next image from the queue.
in the following line 327

func queueNextImage() {
        if remoteQueue  { 
            if imagePlaceholders == nil {
                nextImageView.kf.setImage(with: imageURLs!.read()!, placeholder: nil, options: [.transition(.fade(0.2))])
                nextImageView.kf.indicatorType = .activity
            } else {
                nextImageView.kf.setImage(with: imageURLs!.read()!, placeholder: nil, options: [.transition(.fade(0.2))])
                nextImageView.kf.indicatorType = .activity
            }
        } else {
            nextImageView.image = imageQueue!.read() //Line 327
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions