Github user jaltekruse commented on a diff in the pull request:

    https://github.com/apache/drill/pull/98#discussion_r38594193
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/options/FallbackOptionManager.java
 ---
    @@ -35,61 +42,65 @@ public FallbackOptionManager(OptionManager fallback) {
     
       @Override
       public Iterator<OptionValue> iterator() {
    -    return Iterables.concat(fallback, optionIterable()).iterator();
    +    return Iterables.concat(fallback, getLocalOptions()).iterator();
       }
     
       @Override
    -  public OptionValue getOption(String name) {
    -    final OptionValue opt = getLocalOption(name);
    -    if(opt == null && fallback != null){
    +  public OptionValue getOption(final String name) {
    +    final OptionValue value = getLocalOption(name);
    +    if (value == null && fallback != null) {
    --- End diff --
    
    This null check on the fallback manager seems odd to me. If something 
doesn't have a fallback, why would they create one of these? Should a non-null 
fallback be enforced in the constructor?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to