Skip to content

Commit

Permalink
Revert analyzer warning
Browse files Browse the repository at this point in the history
This reverts the change made in 4734d8f because it causes a null pointer dereference.
Fixes authpass#351.
  • Loading branch information
erikvanoosten committed Sep 30, 2023
1 parent b9563dc commit 57c3878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authpass/lib/cloud_storage/webdav/webdav_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ class WebDavProvider extends CloudStorageProviderClientBase<WebDavClient> {
final cloudStorageEntities = nonNls(entities
.map((entity) {
final hrefEls = entity.findAllElements('href', namespace: 'DAV:');
final href = hrefEls.isEmpty ? null : hrefEls.first.value;
// Note: using `hrefEls.first.value` in the following lines breaks webdav
final href = hrefEls.isEmpty ? null : hrefEls.first.text;
final resourcetype =
entity.findAllElements('resourcetype', namespace: 'DAV:').first;
final isFolder = resourcetype
Expand Down

0 comments on commit 57c3878

Please sign in to comment.