USPTO / PatentPublicData

Utility tools to help download and parse patent data made available to the public
Other
180 stars 81 forks source link

Fails to read APS format #104

Closed mikessut closed 4 years ago

mikessut commented 4 years ago

Trying to run BulkDownloader\src\main\java\gov\uspto\bulkdata\example\Example.java code on a pre-2000 APS formated file.

For example, I download and unzip: https://bulkdata.uspto.gov/data/patent/grant/redbook/fulltext/2000/pftaps20000104_wk01.zip

and pass it to the Example.java code, it fails:

Exception in thread "main" java.lang.NullPointerException
    at gov.uspto.patent.model.DocumentDate.getISODateString(DocumentDate.java:99)
    at gov.uspto.patent.model.DocumentDate.toString(DocumentDate.java:131)
...

It appears that it is looking at one of the referenced patents, which doesn't have a date set and then fails.

Perhaps this isn't the correct way to invoke the Example? However, it does seem to at least get started reporting that it is reading the Greenbook format.