Skip to content

Commit c4f5a0f

Browse files
committed
MessagingException provides null description (instead of empty String) to NestedRuntimeException
Issue: SPR-13447
1 parent 22e84a8 commit c4f5a0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: spring-messaging/src/main/java/org/springframework/messaging/MessagingException.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ public class MessagingException extends NestedRuntimeException {
3232

3333

3434
public MessagingException(Message<?> message) {
35-
super("");
35+
super(null);
3636
this.failedMessage = message;
3737
}
3838

@@ -52,7 +52,7 @@ public MessagingException(Message<?> message, String description) {
5252
}
5353

5454
public MessagingException(Message<?> message, Throwable cause) {
55-
super("", cause);
55+
super(null, cause);
5656
this.failedMessage = message;
5757
}
5858

0 commit comments

Comments
 (0)