This commit is contained in:
2026-02-03 10:38:33 +00:00
parent e582e7ce6b
commit 2f2719101f

View File

@@ -225,7 +225,7 @@ public class GestaoStaffActivity extends AppCompatActivity {
for (DataSnapshot postSnapshot : snapshot.getChildren()) { for (DataSnapshot postSnapshot : snapshot.getChildren()) {
Staff staff = postSnapshot.getValue(Staff.class); Staff staff = postSnapshot.getValue(Staff.class);
if (staff != null) { if (staff != null && staff.getName() != null) {
staffList.add(staff); staffList.add(staff);
staffNames.add(staff.getName()); staffNames.add(staff.getName());