| Index: corelib/src/exceptions.dart
|
| diff --git a/corelib/src/exceptions.dart b/corelib/src/exceptions.dart
|
| index 2eba7601f414afdd8e925b59f6b6ab51ec0174fe..f318af20ccbd9b6e032a5ac330ea39fe95b9d7ba 100644
|
| --- a/corelib/src/exceptions.dart
|
| +++ b/corelib/src/exceptions.dart
|
| @@ -121,21 +121,14 @@ class WrongArgumentCountException implements Exception {
|
|
|
|
|
| class NullPointerException implements Exception {
|
| - const NullPointerException([this.functionName, this.arguments]);
|
| + const NullPointerException([this.functionName, this.arguments = const []]);
|
| String toString() {
|
| - StringBuffer sb = new StringBuffer();
|
| - if (arguments != null) {
|
| - for (var arg in arguments) {
|
| - if (!sb.isEmpty()) sb.add(", ");
|
| - sb.add(arg);
|
| - }
|
| - }
|
| if (functionName == null) {
|
| return exceptionName;
|
| } else {
|
| return "$exceptionName : method: '$functionName'\n"
|
| "Receiver: null\n"
|
| - "Arguments: [$sb]";
|
| + "Arguments: $arguments";
|
| }
|
| }
|
|
|
|
|