diff --git a/src/MangaMap/Views/CreateOeuvre.xaml.cs b/src/MangaMap/Views/CreateOeuvre.xaml.cs index 9aec412..74e694c 100644 --- a/src/MangaMap/Views/CreateOeuvre.xaml.cs +++ b/src/MangaMap/Views/CreateOeuvre.xaml.cs @@ -54,6 +54,12 @@ public partial class createOeuvre : ContentPage int nbEp = Convert.ToInt32(nbEpisodeEntry.Text); string description = descriptionEntry.Text; + if (imagePath == null) + { + await DisplayAlert("Erreur", "Veuillez sélectionner une image.", "OK"); + return; + } + foreach (Oeuvre o in my_manager.Oeuvres) { if (o.Nom == nom)