From Monsieur Thomas. The matcher gets cranky when presented with null.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2939 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -68,6 +68,10 @@ public class MACUtil
|
||||
*/
|
||||
protected static String[] parseMACs (String text)
|
||||
{
|
||||
if (text == null) {
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
Matcher m = MACRegex.matcher(text);
|
||||
|
||||
ArrayList<String> list = new ArrayList<String>();
|
||||
|
||||
Reference in New Issue
Block a user