Skip to content

Commit

Permalink
Beim Speichern eines Nicht-Mitglieds (Ohne Beitragsgruppe) kam es zu (#…
Browse files Browse the repository at this point in the history
…279)

NullPointer Exception
  • Loading branch information
lenilsas authored Aug 5, 2024
1 parent a5b066c commit 4c08052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/de/jost_net/JVerein/server/MitgliedImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ && getZahlungsweg() == Zahlungsweg.BASISLASTSCHRIFT
{
// Person ist eingetreten
// Zahlt jemand anderes für das Mitglied?
if (getBeitragsgruppe().getBeitragsArt() == ArtBeitragsart.FAMILIE_ANGEHOERIGER
if (getBeitragsgruppe() != null && getBeitragsgruppe().getBeitragsArt() == ArtBeitragsart.FAMILIE_ANGEHOERIGER
&& getZahlerID() != null)
{
// ja, suche Familien Zahler. Er darf nicht ausgetreten sein!
Expand All @@ -268,7 +268,7 @@ && getZahlerID() != null)
}
}
// Check ob Beitragsart evtl. vorher FAMILIE_ZAHLER war und für andere gezahlt hat
if (getBeitragsgruppe().getBeitragsArt() != ArtBeitragsart.FAMILIE_ZAHLER)
if (getBeitragsgruppe() != null && getBeitragsgruppe().getBeitragsArt() != ArtBeitragsart.FAMILIE_ZAHLER)
{
// Kein FAMILIE_ZAHLER und darf damit für niemanden zahlen
DBIterator<Mitglied> famang = Einstellungen.getDBService()
Expand Down

0 comments on commit 4c08052

Please sign in to comment.