Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
PR Type
Bug fix
Description
Guard null pointer dereferences across multiple command features
Replace unsafe
firstAncestorOrThisOfTypeAsserted()calls with null checksAdd null checks for viewer, viewerCommands, and ownerCase pointers
Consolidate repeated pointer lookups into single variables
Diagram Walkthrough
File Walkthrough
21 files
Guard activeReservoirView null pointerGuard viewer and ownerCase pointer accessReplace asserted cast with null checkReplace asserted cast with null checkGuard view3d pointer before accessReplace asserted cast with null checkReplace asserted cast with null checkReplace asserted cast with null checkGuard sourceObject null pointerGuard sourceObject null pointerGuard fracture pointer before accessGuard ownerCase pointer accessGuard crossPlot null pointerConsolidate pointer lookups with null checksGuard viewer and viewerCommands pointersGuard viewer and viewerCommands pointersGuard viewer pointer before accessGuard activeReservoirView pointer accessGuard ownerCase pointer with fallbackConsolidate measurement pointer lookupGuard summaryCase pointer before use