summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorlioncash <mathew1900@hotmail.com>2013-09-10 08:32:11 -0400
committerlioncash <mathew1900@hotmail.com>2013-09-10 08:32:11 -0400
commitce5f80b151d2343879cea0168ff70fee17172b6d (patch)
tree7d73b38f6b194614762275159f0632574a16058c /Source/Android
parent484130049da613470add1fd6902891ea093854f5 (diff)
[Android] Give the exceptions in compareTo implementations in GameListItem and FolderBrowserItem some messages. If the exceptions ever actually get thrown, at least you're given a reason as to why the exception was thrown now. Also changed the exception type to NullPointerException. IllegalArgumentException is intended to be used for validating the parameters in constructors/methods.
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/folderbrowser/FolderBrowserItem.java2
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/folderbrowser/FolderBrowserItem.java b/Source/Android/src/org/dolphinemu/dolphinemu/folderbrowser/FolderBrowserItem.java
index e081c061fe..c2b2723664 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/folderbrowser/FolderBrowserItem.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/folderbrowser/FolderBrowserItem.java
@@ -104,6 +104,6 @@ public final class FolderBrowserItem implements Comparable<FolderBrowserItem>
if(name != null)
return name.toLowerCase().compareTo(other.getName().toLowerCase());
else
- throw new IllegalArgumentException();
+ throw new NullPointerException("The name of this FolderBrowserItem is null");
}
}
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java
index f65740dec3..67d61256d4 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java
@@ -117,7 +117,7 @@ public final class GameListItem implements Comparable<GameListItem>
if (name != null)
return name.toLowerCase().compareTo(o.getName().toLowerCase());
else
- throw new IllegalArgumentException();
+ throw new NullPointerException("The name of this GameListItem is null");
}
}