Open muuki88 opened 12 years ago
If segements are too short, the algorithm throws a NullPointerException because the segments list is empty.
NullPointerException
Throw an Exception with a sophisticated error message.
Problem
If segements are too short, the algorithm throws a
NullPointerException
because the segments list is empty.Task
Throw an Exception with a sophisticated error message.