Repository navigation
Closed
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffReviewingHas a PR in reviewHas a PR in review
Description
Problem
I believe this issue was introduced in this PR. From the Crashlytics crash report:
> new.expensify@1.2.48-2 symbolicate:android
> npx metro-symbolicate android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
Non-fatal Exception: io.invertase.firebase.crashlytics.JavaScriptError: Cannot read property 'length' of undefined
at .getIcons(address at /home/runner/work/App/App/src/libs/ReportUtils.js:474:getIcons)
at .render(address at /home/runner/work/App/App/src/pages/ReportDetailsPage.js:123:render)
at .finishClassComponent(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4692:finishClassComponent)
at .updateClassComponent(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:4663:updateClassComponent)
at .beginWork$1(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7837:beginWork$1)
at .performUnitOfWork(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7278:performUnitOfWork)
at .workLoopSync(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7271:workLoopSync)
at .renderRootSync(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:7253:renderRootSync)
at .performSyncWorkOnRoot(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6948:performSyncWorkOnRoot)
at .flushSyncCallbacks(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2145:flushSyncCallbacks)
at .scheduleUpdateOnFiber(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:6602:scheduleUpdateOnFiber)
at .enqueueSetState(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js:2590:classComponentUpdater.enqueueSetState)
at .anonymous(address at /home/runner/work/App/App/node_modules/react/cjs/react.production.min.js:12:E.prototype.setState)
at .setWithOnyxState(address at /home/runner/work/App/App/node_modules/react-native-onyx/lib/withOnyx.js:103:setWithOnyxState)
at .sendDataToConnection(address at /home/runner/work/App/App/node_modules/react-native-onyx/lib/Onyx.js:592:sendDataToConnection)
at .anonymous(address at /home/runner/work/App/App/node_modules/react-native-onyx/lib/Onyx.js:642:Promise.all.then.then$argument_0)
at .tryCallOne(null:null:null)
at .anonymous(null:null:null)
at .anonymous(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:248:_allocateCallback$argument_0)
at ._callTimer(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:112:_callTimer)
at ._callReactNativeMicrotasksPass(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:162:_callReactNativeMicrotasksPass)
at .callReactNativeMicrotasks(address at /home/runner/work/App/App/node_modules/react-native/Libraries/Core/Timers/JSTimers.js:413:callReactNativeMicrotasks)
at .__callReactNativeMicrotasks(address at /home/runner/work/App/App/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:390:__callReactNativeMicrotasks)
at .anonymous(address at /home/runner/work/App/App/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:132:__guard$argument_0)
at .__guard(address at /home/runner/work/App/App/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:367:__guard)
at .flushedQueue(address at /home/runner/work/App/App/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:131:flushedQueue)
at .callFunctionReturnFlushedQueue(address at /home/runner/work/App/App/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:116:callFunctionReturnFlushedQueue)
Why is this important
It can crash the app and lead to unexpected behavior
Solution
Check if participants exists.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~0173d7bfb058627d0a
- Upwork Job ID: 1612491915725602816
- Last Price Increase: 2023-01-09
Metadata
Metadata
Assignees
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffReviewingHas a PR in reviewHas a PR in review
Activity
melvin-bot commentedon Jan 9, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0173d7bfb058627d0a
melvin-bot commentedon Jan 9, 2023
Triggered auto assignment to Contributor Plus for review of internal employee PR - @Santhosh-Sellavel (
Internal)luacmartins commentedon Jan 9, 2023
PR here. @rushatgabhane I'm swapping you with @sobitneupane since he already reviewed the PR.
melvin-bot commentedon Jan 16, 2023
@CortneyOfstad, @luacmartins, @sobitneupane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
sobitneupane commentedon Jan 17, 2023
PR deployed to Production on 13th Jan.

[-]Cannot read property 'length' of undefined in ReportUtils getIcon[/-][+][HOLD for payment 2023-01-20] Cannot read property 'length' of undefined in ReportUtils getIcon[/+]luacmartins commentedon Jan 17, 2023
Updated the title to reflect the pay due date
CortneyOfstad commentedon Jan 23, 2023
@luacmartins Is this ready for payment? I just want to confirm, and the only one receiving payment is @sobitneupane, correct? And if so, is this $250 or $1000? No price point is listed in the title. TIA!
luacmartins commentedon Jan 23, 2023
@CortneyOfstad correct, this is ready to be paid and that'd be $1000 to @sobitneupane for the PR review!
CortneyOfstad commentedon Jan 23, 2023
Thank you! Sending over the contract now and will pay it ASAP once it is accepted!
CortneyOfstad commentedon Jan 23, 2023
@sobitneupane contract has been sent over!
sobitneupane commentedon Jan 24, 2023
@CortneyOfstad Thanks. Accepted the offer.
CortneyOfstad commentedon Jan 24, 2023
Paid! Thank you!!