File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change
1
+ # v5.0.8
2
+
3
+ ### Bug Fixes
4
+ * Hot Fix NullPointer error related to missing folder and GUI-wide settings file #1003 #1004
5
+
1
6
# v5.0.7
2
7
3
8
### Improvements
Original file line number Diff line number Diff line change @@ -86,6 +86,21 @@ class GuiSettings {
86
86
87
87
public boolean saveToFile () {
88
88
String json = getJson();
89
+
90
+ try {
91
+ final File file = new File (filename);
92
+ final File parent_directory = file. getParentFile();
93
+
94
+ if (null != parent_directory)
95
+ {
96
+ parent_directory. mkdirs();
97
+ }
98
+ } catch (Exception e) {
99
+ e. printStackTrace();
100
+ outputWarn(" OpenBCI_GUI::Settings: Error creating /Documents/OpenBCI_GUI/Settings/ folder. Please make an issue on GitHub." );
101
+ return false ;
102
+ }
103
+
89
104
try {
90
105
FileWriter writer = new FileWriter (filename);
91
106
writer. write(json);
Original file line number Diff line number Diff line change 23
23
<key >CFBundleShortVersionString</key >
24
24
<string >5</string >
25
25
<key >CFBundleVersion</key >
26
- <string >5.0.7 </string >
26
+ <string >5.0.8 </string >
27
27
<key >CFBundleSignature</key >
28
28
<string >????</string >
29
29
<key >NSHumanReadableCopyright</key >
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ import http.requests.*;
60
60
// Global Variables & Instances
61
61
// ------------------------------------------------------------------------
62
62
// Used to check GUI version in TopNav.pde and displayed on the splash screen on startup
63
- String localGUIVersionString = " v5.0.7 " ;
63
+ String localGUIVersionString = " v5.0.8 " ;
64
64
String localGUIVersionDate = " September 2021" ;
65
65
String guiLatestVersionGithubAPI = " https://api.github.com/repos/OpenBCI/OpenBCI_GUI/releases/latest" ;
66
66
String guiLatestReleaseLocation = " https://github.com/OpenBCI/OpenBCI_GUI/releases/latest" ;
You can’t perform that action at this time.
0 commit comments