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 1
1
/*
2
- * Copyright 2023-2024 the original author or authors.
2
+ * Copyright 2023-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -94,7 +94,7 @@ private double numberOfSpacesBetweenTwoCharacters(final TextPosition textPositio
94
94
95
95
private char getCharacterFromTextPosition (final TextPosition textPosition ) {
96
96
String string = textPosition .getUnicode ();
97
- char character = string .charAt (0 );
97
+ char character = ! string .isEmpty () ? string . charAt (0 ) : '\0' ;
98
98
return character ;
99
99
}
100
100
Original file line number Diff line number Diff line change 280
280
<protobuf-java .version>3.25.2</protobuf-java .version>
281
281
282
282
<!-- readers/writer/stores dependencies-->
283
- <pdfbox .version>3.0.3 </pdfbox .version>
283
+ <pdfbox .version>3.0.4 </pdfbox .version>
284
284
<pgvector .version>0.1.6</pgvector .version>
285
285
<sap .hanadb.version>2.20.11</sap .hanadb.version>
286
286
<coherence .version>24.09</coherence .version>
You can’t perform that action at this time.
0 commit comments