mirror of https://github.com/AMT-Cheif/drift.git
Don't crash when daos can't be read (#601)
This commit is contained in:
parent
231efe26a7
commit
074c9d973d
|
@ -38,9 +38,10 @@ class UseMoorParser {
|
|||
|
||||
List<DartType> _readDaoTypes(ConstantReader annotation) {
|
||||
return annotation
|
||||
.peek('daos')
|
||||
.listValue
|
||||
.map((obj) => obj.toTypeValue())
|
||||
.toList();
|
||||
.peek('daos')
|
||||
?.listValue
|
||||
?.map((obj) => obj.toTypeValue())
|
||||
?.toList() ??
|
||||
[];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue