Skip to content

Commit

Permalink
Merge pull request #16 from thisisthekap/br_15_graceful_null_handling…
Browse files Browse the repository at this point in the history
…_on_detach
  • Loading branch information
thisisthekap authored Mar 2, 2022
2 parents 24a82ff + 0510444 commit 93673fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,5 @@ FodyWeavers.xsd
*.tlog

# End of https://www.toptal.com/developers/gitignore/api/visualstudio,rider

.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<PackageReference Include="Xamarin.Google.Android.Material" Version="1.4.0.4" />
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
<PackageReference Include="Xamarin.ExoPlayerSlim">
<Version>2.16.1.11</Version>
<Version>2.16.1.12</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Xamarin.ExoPlayerSlim/Xamarin.ExoPlayerSlim.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Xamarin.ExoPlayerSlim</PackageId>
<Version>2.16.1.11</Version>
<Version>2.16.1.12</Version>
<Description>Contains bindings for https://exoplayer.dev</Description>
<Authors>Christian Kapplmüller</Authors>
<Company>fun.music IT GmbH</Company>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void attachPlayerView(View playerView, boolean useNativeControls, int asp
@Override
public void detachPlayerView(View playerView) {
if (playerView == null) {
throw new NullPointerException("playerView must not be null");
return;
}
if (!(playerView instanceof PlayerView)) {
throw new ClassCastException("playerView is not instance of PlayerView");
Expand Down

0 comments on commit 93673fa

Please sign in to comment.