forked from line/armeria
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NPE while DocService scans gRPC services
Motivation: While `GrpcDocServicePlugin` scans the gRPC services to retrieve their `ServiceDescriptor`s, a `NullPointerException` can occurs in some services. Modifications: - Skip the service whose `getServiceDescriptor()` and `getSchemaDesciptor()` return `null`. - Skip the service whose `getSchemaDescriptor()` returns a descriptor that's not a `ProtoFileDescriptorSupplier`. Result: - No more NPE - Fixes line#1705
- Loading branch information
Showing
1 changed file
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters