Skip to content

Commit 07d8f6e

Browse files
CesarCoelhoclaude
andcommitted
Restore the log-and-continue handling of NotFoundException on decode
Rethrowing the NotFoundException as MALException changed the behavior of a long-standing path: callers above may push the error back to consumers or brokers that previously carried on after the logged warning. Keep the original swallowing behavior; the repeated-read guard still reports a descriptive MALException instead of an NPE when a previous decode attempt has failed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 277f7c8 commit 07d8f6e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

transports/transport-generic/src/main/java/esa/mo/mal/transport/gen/body/LazyMessageBody.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,6 @@ protected synchronized void decodeMessageBody() throws MALException {
283283
} catch (NotFoundException ex) {
284284
Transport.LOGGER.log(Level.WARNING,
285285
"(2) Unable to decode the Message Body!", ex);
286-
// Propagate instead of swallowing: otherwise messageParts stays
287-
// null and readers fail later with an NPE that hides this cause
288-
throw new MALException("Unable to decode the Message Body! "
289-
+ "The operation could not be found!", ex);
290286
}
291287
}
292288

0 commit comments

Comments
 (0)