Troubleshooting Player Deactivation Issue in Application Development

The State Changers meeting focused primarily on troubleshooting an issue related to a "deactivate player" function. The problem surfaced when trying to edit a nonexistent player record resulting from a player being off the roster and therefore, not present in the database.


The team speculated that an "if" conditional statement might be a potential solution to only edit a record if the player exists. The suggested logic was: if the player is null, perform some deactivation activity; else, edit the record. There was some confusion about the interpretation of commas and nulls in array items and how the querying mechanism was handling missing players. A brief discussion ensued on the distinction between variables and when a value might return null. Towards the end, the State Changers agreed that the potential workaround might involve inserting a conditional test to check the status of the 'player' variable before attempting to edit the player record. They also discussed using the "+" sign after the "query all records" operation to handle the conditional situation when a player is null. Note: None of the mentioned keywords were explicitly referenced in this meeting.


(Source: Office Hours 12/28 )

State Change Members Can View The Video Here
chris-montgomery-smgTvepind4-unsplash.jpg

View This Video Now

Join State Change Risk-Free