Skip to content

Commit 1525125

Browse files
committed
Correct bson version variable in Java library
1 parent 5cca267 commit 1525125

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Java/library/src/main/java/org/jwitsml21parser/JWitsmlParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public String getJsonVersion() throws JWitsmlException, Exception {
159159
if (this.jsonByteVersion == null)
160160
this.jsonByteVersion = bsonToString(this.objectVersion);
161161

162-
return (this.json = new String(jsonByteVersion, StandardCharsets.UTF_8));
162+
return (this.jsonVersion = new String(jsonByteVersion, StandardCharsets.UTF_8));
163163
}
164164

165165
public String getJson() throws JWitsmlException, Exception {

NodeJS/env.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
search_dir=$(pwd)/../build/Release
3+
4+
if [ -d $search_dir ]; then
5+
echo $(readlink -f $search_dir)
6+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(readlink -f $search_dir)
7+
echo "Node path set to $LD_LIBRARY_PATH"
8+
else
9+
echo "ERROR: JSWITSML 2.1 to BSON parser not found. Compile addon with 'make nodejs' and run this environment again"
10+
return 1
11+
fi
12+

0 commit comments

Comments
 (0)