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

uncaught exception in getFuzzingValues if type is null. #215

Open
c7h opened this issue Nov 1, 2021 · 1 comment
Open

uncaught exception in getFuzzingValues if type is null. #215

c7h opened this issue Nov 1, 2021 · 1 comment

Comments

@c7h
Copy link

c7h commented Nov 1, 2021

Hello,

While generating fuzzing values for the OAS specification, an underhanded exception occurred. It seems to be caused by the oneOf section here https://github.com/free5gc/Nnrf_NFManagement/blob/a680e6aa89ea3b8b7e266b892b05710fddf37581/api/openapi.yaml#L1741, which doesn't have a type.

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "type" is null
        at es.us.isa.restest.inputs.fuzzing.FuzzingDictionary.getFuzzingValues(FuzzingDictionary.java:70)
        at es.us.isa.restest.generators.FuzzingTestCaseGenerator.createValueNode(FuzzingTestCaseGenerator.java:164)
        at es.us.isa.restest.generators.FuzzingTestCaseGenerator.generateFuzzingBody(FuzzingTestCaseGenerator.java:149)
        at es.us.isa.restest.generators.FuzzingTestCaseGenerator.generateFuzzingBody(FuzzingTestCaseGenerator.java:113)
        at es.us.isa.restest.generators.FuzzingTestCaseGenerator.generateNextTestCase(FuzzingTestCaseGenerator.java:95)
        at es.us.isa.restest.generators.FuzzingTestCaseGenerator.generateOperationTestCases(FuzzingTestCaseGenerator.java:73)
        at es.us.isa.restest.generators.AbstractTestCaseGenerator.generate(AbstractTestCaseGenerator.java:244)
        at es.us.isa.restest.generators.AbstractTestCaseGenerator.generate(AbstractTestCaseGenerator.java:165)
        at es.us.isa.restest.generators.AbstractTestCaseGenerator.generate(AbstractTestCaseGenerator.java:218)
        at es.us.isa.restest.runners.RESTestRunner.testGeneration(RESTestRunner.java:107)
        at es.us.isa.restest.runners.RESTestRunner.run(RESTestRunner.java:66)
        at es.us.isa.restest.main.TestGenerationAndExecution.main(TestGenerationAndExecution.java:148)
        
@c7h
Copy link
Author

c7h commented Nov 1, 2021

Linked Issue: #178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant