Accessing a property of a null object - one of the most common JavaScript errors.
📋 Demo Instructions
Click the "Trigger Error" button below
Open browser console (F12) to see the error
Wait 5-10 seconds for the error to be captured
Go to Dashboard → Performance Monitoring
Click "Fix with Carla" on the error
Review the generated PR
🌍 Real-World Scenario
API returns null instead of the expected user object. This happens when the backend can't find the requested resource or returns an error response that gets parsed as null.
✅ Expected Fix
Add optional chaining (?.) to safely access nested properties, or add an explicit null check before accessing properties.
Fix Confidence:HIGH
💻 Buggy Code
// Buggy Code
const user = null;
console.log(user.name);
// TypeError: Cannot read properties of null (reading 'name')