Skip to content

Not parsing data on startup #9

@spacie2136

Description

@spacie2136

Hi,
first of all let me say i never used flutter nor dart. So im still lost in your code (well written btw.!).

I managed to set up everything but the app hangs on startup with this message:

I/flutter (30368): type 'String' is not a subtype of type 'Map<String, dynamic>'
E/flutter (30368): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
E/flutter (30368): #0 categoryProvider.. (package:Tiwee/business_logic/provider/categoryprovider.dart:23:39)

Im not sure, but it seems to me there is a mismatch in the JSON format from the pulled API and the internal objects!? (Absolutly not sure!)
I placed a try block over the for loop (just for testing) and managed to get the app running. But without any channels :-(

I'll be digging into it, but im still very lost as i said ;-) Do you maybe have an easy solution for this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions