Heroes-Profile / heroesprofile

Heroes Profile website public repository
https://www.heroesprofile.com/
18 stars 2 forks source link

Attempt to read property "name" on null #1080

Closed Zemill closed 3 days ago

Zemill commented 3 days ago

ErrorException

Attempt to read property "name" on null

🎯 App\Http\Controllers\Player\PlayerMMRController::getData 🗂 /app/Http/Controllers/Player/PlayerMMRController.php:148

146      $mmrType = 10000;
147  } elseif ($type == 'Hero') {
148*     $mmrType = MMRTypeID::where('name', $hero->name)->first()->mmr_type_id;
149  } elseif ($type == 'Role') {
150      $mmrType = MMRTypeID::where('name', $role)->first()->mmr_type_id;

Open in Flare

flare-error-tracker[bot] commented 3 days ago

Error Attempt to read property "name" on null was resolved in Flare.