79312590

Date: 2024-12-27 19:03:35
Score: 1.5
Natty:
Report link

The problem is that not every device has a name. If it scans a device without name and shows in logcat, it gives null and crash. To solve it just add if statement and check whether getName is null.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: yolopoi