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
{{ message }}
Repository navigation
fix: /apps deep link crashes on malformed URL (missing path segment check) #4762
app/lib/core/app_shell.dart:64 accesses uri.pathSegments[1] without checking that the array has more than 1 element:
if (uri.pathSegments.first =='apps') {
if (mounted) {
var app =await context.read<AppProvider>().getAppFromId(uri.pathSegments[1]); // 💥 RangeError
Opening h.omi.me/apps (no app ID) or omi://h.omi.me/apps throws RangeError (index) and crashes.
The /tasks handler added in PR #4737 correctly guards with uri.pathSegments.length > 1, but the existing /apps handler does not.
Reproduction
adb shell am start -a android.intent.action.VIEW -d "https://h.omi.me/apps" com.friend.ios
App crashes with RangeError.
Fix
Add length check before accessing pathSegments[1], matching the /tasks pattern:
Activity
Fix Android deep links broken across all notification types (#4799)