Skip to content

Commit

Permalink
Fixing exception related to aalto-xml usage. (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewauclair authored Dec 29, 2023
1 parent 5b11bef commit 9629f81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ private WindowLayout readLayoutFromReader(XMLStreamReader reader) throws XMLStre
String locStr = reader.getAttributeValue(1);
String sizeStr = reader.getAttributeValue(2);
int state = Integer.parseInt(reader.getAttributeValue(3));
String maximizedDockable = reader.getAttributeValue(4);
String maximizedDockable = reader.getAttributeCount() >= 5 ? reader.getAttributeValue(4) : null;

Point location = new Point(Integer.parseInt(locStr.substring(0, locStr.indexOf(","))), Integer.parseInt(locStr.substring(locStr.indexOf(",") + 1)));
Dimension size = new Dimension(Integer.parseInt(sizeStr.substring(0, sizeStr.indexOf(","))), Integer.parseInt(sizeStr.substring(sizeStr.indexOf(",") + 1)));
Expand Down
2 changes: 2 additions & 0 deletions docking-single-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ base {

dependencies {
implementation project(':docking-api')

implementation 'com.fasterxml:aalto-xml:1.3.1'
}

java {
Expand Down

0 comments on commit 9629f81

Please sign in to comment.