8000 NullPointerException on calling analyze() if no record exists · Issue #4 · T-Spoon/Benchit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
NullPointerException on calling analyze() if no record exists #4
Open
@inhaledesign

Description

@inhaledesign

If I call Benchit.analyze("test") when no records for "test" have been recorded, I'll get this exception:

java.lang.NullPointerException: Attempt to invoke virtual method 'com.tspoon.benchit.Result com.tspoon.benchit.Benchmark.result()' on a null object reference

I know it's kindof minor and I could catch the exception myself, but it would be preferable if an empty result could be returned and .log() would print out a message indicating there were no records.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0