Skip to content

Commit

Permalink
Fix null exceptions (#718)
Browse files Browse the repository at this point in the history
* Fix null exception

* Fix null exceptions
  • Loading branch information
andyksaw authored Jun 3, 2023
1 parent 26ea55a commit 1ad0623
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/admin/ban-appeal/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</td>
<td>
<a href="{{ route('front.panel.minecraft-players.show', $banAppeal->gamePlayerBan->bannedPlayer)}}">
{{ $banAppeal->gamePlayerBan->bannerPlayer->getBanReadableName() ?? 'No Alias' }}
{{ $banAppeal->gamePlayerBan->bannerPlayer?->getBanReadableName() ?? 'No Alias' }}
</a>
</td>
<td>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/front/pages/ban-appeal/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="messages">
<div class="message message--left">
<div class="message-avatar">
<img src="https://minotar.net/helm/{{ $banAppeal->gamePlayerBan->bannedPlayer->uuid }}/32" width="32"/>
<img src="https://minotar.net/helm/{{ $banAppeal->gamePlayerBan->bannedPlayer?->uuid }}/32" width="32"/>
</div>
<div class="message-comment">
<div class="message-text">
Expand All @@ -73,11 +73,11 @@
@endif
</div>
<div class="message-date">
{{$banAppeal->deciderAccount->username }} &bull; {{ $banAppeal->decided_at }}
{{$banAppeal->deciderAccount?->username }} &bull; {{ $banAppeal->decided_at }}
</div>
</div>
<div class="message-avatar">
<img src="https://minotar.net/helm/{{ $banAppeal->deciderAccount->uuid }}/32" width="32"/>
<img src="https://minotar.net/helm/{{ $banAppeal->deciderAccount?->uuid }}/32" width="32"/>
</div>
</div>
@endif
Expand Down

0 comments on commit 1ad0623

Please sign in to comment.