Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vdt-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
vdt-plugin
Commits
b3e15b29
Commit
b3e15b29
authored
Jun 18, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made it tolerate emty TSL files (created by accidental launch of xml file in the editor)
parent
82ff37ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
XMLConfig.java
src/com/elphel/vdt/core/tools/config/xml/XMLConfig.java
+8
-2
No files found.
src/com/elphel/vdt/core/tools/config/xml/XMLConfig.java
View file @
b3e15b29
...
@@ -471,8 +471,14 @@ public class XMLConfig extends Config {
...
@@ -471,8 +471,14 @@ public class XMLConfig extends Config {
System
.
out
.
println
(
"Reading file '"
+
configFile
+
"'"
);
System
.
out
.
println
(
"Reading file '"
+
configFile
+
"'"
);
DocumentBuilderFactory
factory
=
DocumentBuilderFactory
.
newInstance
();
DocumentBuilderFactory
factory
=
DocumentBuilderFactory
.
newInstance
();
DocumentBuilder
builder
=
factory
.
newDocumentBuilder
();
DocumentBuilder
builder
=
factory
.
newDocumentBuilder
();
Document
document
=
builder
.
parse
(
configFile
);
Document
document
;
try
{
document
=
builder
.
parse
(
configFile
);
}
catch
(
SAXException
e
){
System
.
out
.
println
(
"\n====== Problem parsing '"
+
configFile
+
"' - is it empty? =====\n"
);
return
;
}
currentConfigFileName
=
configFile
.
getAbsolutePath
();
currentConfigFileName
=
configFile
.
getAbsolutePath
();
findRootNode
(
document
);
findRootNode
(
document
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment