File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
document-readers/pdf-reader/src/main/java/org/springframework/ai/reader/pdf/layout Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2023-2024 the original author or authors.
2+ * Copyright 2023-2025 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.
@@ -94,7 +94,7 @@ private double numberOfSpacesBetweenTwoCharacters(final TextPosition textPositio
9494
9595 private char getCharacterFromTextPosition (final TextPosition textPosition ) {
9696 String string = textPosition .getUnicode ();
97- char character = string .charAt (0 );
97+ char character = ! string .isEmpty () ? string . charAt (0 ) : '\0' ;
9898 return character ;
9999 }
100100
Original file line number Diff line number Diff line change 280280 <protobuf-java .version>3.25.2</protobuf-java .version>
281281
282282 <!-- readers/writer/stores dependencies-->
283- <pdfbox .version>3.0.3 </pdfbox .version>
283+ <pdfbox .version>3.0.4 </pdfbox .version>
284284 <pgvector .version>0.1.6</pgvector .version>
285285 <sap .hanadb.version>2.20.11</sap .hanadb.version>
286286 <coherence .version>24.09</coherence .version>
You can’t perform that action at this time.
0 commit comments