Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demonstrating error with time #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
demonstrating error with time
gxm committed Nov 28, 2014
commit 4d53bb5f96d9ae97a68a9acf9fda2573387e1f9c
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -175,7 +175,8 @@ jar {

artifacts {
archives jar
archives javadocJar
//this fails with many errors & warnings using gradle 2.2.1
//archives javadocJar
archives sourcesJar
}

Binary file added data/gdb/TestCrash.gdb/a00000001.TablesByName.atx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000001.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000001.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000001.gdbtablx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000002.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000002.gdbtablx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000003.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000003.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000003.gdbtablx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000004.FDO_UUID.atx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000004.freelist
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000004.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000004.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000004.gdbtablx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000004.spx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000005.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000005.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000005.gdbtablx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000006.FDO_UUID.atx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000006.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000006.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000006.gdbtablx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000007.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000007.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000007.gdbtablx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000009.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000009.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000009.gdbtablx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a00000009.spx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a0000000a.gdbindexes
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a0000000a.gdbtable
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a0000000a.gdbtablx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/a0000000a.spx
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/gdb
Binary file not shown.
Binary file added data/gdb/TestCrash.gdb/timestamps
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -261,7 +261,11 @@ private static LinearRing makeRing(int count, double radius, double xoffset, dou

@Test
public void testReadFeatureGdb() throws IOException {
File path = new File("data/gdb/ftest1.gdb");
readGdb("data/gdb/ftest1.gdb");
}

private void readGdb(String pathname) throws IOException {
File path = new File(pathname);
IGISInputStream os = null;
try {
os = new FileGdbInputStream(path, null);
@@ -289,6 +293,20 @@ public void testReadFeatureGdb() throws IOException {
}
}

@Test
public void testReadCrashGdb() throws IOException {
/**
* this test fails with stack trace
* Exception in thread "main" java.lang.NullPointerException
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2342)
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2312)
at java.util.Calendar.setTimeInMillis(Calendar.java:1804)
at org.opensextant.giscore.filegdb.Row.getAttrArray(Native Method)
at org.opensextant.giscore.filegdb.Row.getAttributes(Row.java:215)
*/
readGdb("data/gdb/TestCrash.gdb");
}

private static void deleteGdbFolder(File db) {
if (db.exists()) {
for(File f : db.listFiles()) {