so I am trying to create collection with a document in firestore, from variables I collected in Form fiels, code goes:
onPressed:() async {
await FirebaseFirestore.instance
.collection(_ICO).add({
"Company name": _compname,
}).then((_){
print("success!");
});
and this is the error code I am getting:
F/crash_dump32(18407): crash_dump.cpp:474] failed to attach to thread 181: Permission denied I/e.firebase_com(17852): Thread[5,tid=17868,WaitingInMainSignalCatcherLoop,Thread=0xe1a8d210,peer=0x13240228,"Signal Catcher"]: reacting to signal 3 I/e.firebase_com(17852): I/e.firebase_com(17852): Wrote stack traces to tombstoned E/flutter (17852): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: NoSuchMethodError: The getter 'isNotEmpty' was called on null. E/flutter (17852): Receiver: null E/flutter (17852): Tried calling: isNotEmpty*
I should also mention that I am logged in with user account while trying to run this code.
Every help is appreciated.