You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typing anything in the collection filter/search box crashes the app if there is at least one AI-type request in the collection.
Steps to Reproduce
Add a new request and switch its type to AI
Type any character in the filter box in the left sidebar
App crashes immediately
video illustrating the bug
filter-crash-ai-requests-compressed.mp4
Expected behavior
Filter works normally. AI requests are matched by name.
Root Cause
File: `lib/screens/home_page/collection_pane.dart`, line 149
Current code:
if (item.httpRequestModel!.url.toLowerCase().contains(filterQuery) ||
item.name.toLowerCase().contains(filterQuery)) {
Problem: `httpRequestModel` is `null` for `APIType.ai` requests. Force-unwrapping it with `!` throws `Null check operator used on a null value` the moment the filter iterates over an AI request.
Describe the bug
Typing anything in the collection filter/search box crashes the app if there is at least one AI-type request in the collection.
Steps to Reproduce
video illustrating the bug
filter-crash-ai-requests-compressed.mp4
Expected behavior
Filter works normally. AI requests are matched by name.
Root Cause
File: `lib/screens/home_page/collection_pane.dart`, line 149
Current code:
Problem: `httpRequestModel` is `null` for `APIType.ai` requests. Force-unwrapping it with `!` throws `Null check operator used on a null value` the moment the filter iterates over an AI request.