...
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user