Skip to content

Commit 8666841

Browse files
Snipxyulian-gaponenko
authored andcommitted
Catch more generic exception due to differences between Java and C#
Autoported commit. Original commit hash: [9ef83fb764]
1 parent acae4bc commit 8666841

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

itext/itext.layout/itext/layout/renderer/AbstractRenderer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ protected internal virtual void ApplyAbsolutePosition(Rectangle parentRect) {
923923
Move(0, parentRect.GetBottom() + (float)bottom - occupiedArea.GetBBox().GetBottom());
924924
}
925925
}
926-
catch (ArgumentNullException) {
926+
catch (Exception) {
927927
ILogger logger = LoggerFactory.GetLogger(typeof(iText.Layout.Renderer.AbstractRenderer));
928928
logger.Error(MessageFormatUtil.Format(iText.IO.LogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED,
929929
"Absolute positioning might be applied incorrectly."));
@@ -1082,7 +1082,7 @@ protected internal virtual void AlignChildHorizontally(IRenderer childRenderer,
10821082
}
10831083
}
10841084
}
1085-
catch (ArgumentNullException) {
1085+
catch (Exception) {
10861086
ILogger logger = LoggerFactory.GetLogger(typeof(iText.Layout.Renderer.AbstractRenderer));
10871087
logger.Error(MessageFormatUtil.Format(iText.IO.LogMessageConstant.OCCUPIED_AREA_HAS_NOT_BEEN_INITIALIZED,
10881088
"Some of the children might not end up aligned horizontally."));

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
03445e620cdc9e229d07682a166d529c8a5f7aa8
1+
9ef83fb76422577d6f46d9df52ee90911fa71d8a

0 commit comments

Comments
 (0)