title: EL1007E: Property or field 'fieldName' cannot be found on null
body: <p>Good evenning i no longer have a solution ..Ive been hesitating to ask for help but Im litteraly at a dead end .
  Im working on a Spring boot 2.0.5 Spring MVC 5.0.9, ThymeLeaf 3.0.9 project that needs to be delievered in few weeks ..I have encountered a problem for some weeks now ...did my research and tried every possible solution and I still have the same problem .
  In Fact, my controller does not bind my model variables to my view ...it always renders "EL1007E: Property or field 'fieldName' cannot be found on null" ..
  Ive litteraly tried everything(since my code is just fine )..</p>
  
  <ol>
  <li>upgrading and downgrading JDK/JRE and matching them with eclipse version worked once,got me the information i needed but then got the same issue back .</li>
  <li><p>Using ModelAndView instead of String for rendreding web pages </p></li>
  <li><p>mvn clean/mvn install /mvn dependency:resolve ...every command i found helpfull </p></li>
  <li>deleting the ./m2 repository for unnecessary dependencies </li>
  <li>even setting a new workspace ..compiling debugging 
  and im really stuck ..
  can you give me some advice please !!</li>
  </ol>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns:th="http://www.thymeleaf.org"
   data-layout-decorate="~{index}"&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8" /&gt;
  &lt;title&gt;Page test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
   &lt;div data-layout-fragment="content"&gt;
    &lt;div class="container"&gt;
     &lt;div class="row"&gt;
      &lt;div class="col-sm-6" align="center"&gt;
  
       &lt;form th:action="@{/consulter}" method="get"
        th:object="${paramSociete}"&gt;
        &lt;input type="text" name="nomSociete" class="form-control"
         placeholder="AMEN BANK" /&gt;
        &lt;button type="submit"&gt;Clique moi !!&lt;/button&gt;
       &lt;/form&gt;
       &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
       &lt;div&gt;
        &lt;div&gt;
         &lt;label&gt;Nom Banque :&lt;/label&gt;&lt;Label th:inline="text"&gt;
          [[${paramSociete.nomSociete}]]&lt;/Label&gt;
        &lt;/div&gt;
        &lt;div&gt;
         &lt;label&gt;Reference msg:&lt;/Label&gt;&lt;Label th:inline="text"&gt;[[${paramSociete.initialMsg}]]&lt;/Label&gt;
        &lt;/div&gt;
        &lt;div&gt;
         &lt;label&gt;chemin dacces:&lt;/label&gt; &lt;Label th:inline="text"&gt;[[${paramSociete.pathMsgEmis}]]&lt;/Label&gt;
  
        &lt;/div&gt;
       &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <pre><code>@Controller
  public class ParamSocieteController {
      @Autowired
      private ParamSocieteServiceImpl societeServiceImpl;
  
      @Autowired
      public void setSocieteServiceImpl(ParamSocieteServiceImpl societeServiceImpl) {
          this.societeServiceImpl = societeServiceImpl;
      }
  
      @RequestMapping(value="/")
      public String showTest() {
  
          System.out.println("Here we go !!");
          return "ThymeTest";
  
      }
  
      @RequestMapping(value = "/consulter")
      public String afficherAmenBank(Model model, String nomSociete) {
          ParamSociete societe = societeServiceImpl.findSociete(nomSociete);
          if (societe == null) {
              model.addAttribute("paramSociete", new ParamSociete());
          } else {
              model.addAttribute("nomSociete", nomSociete);
              model.addAttribute("paramSociete", societe);
              System.out.println(societe.getNomSociete());
              System.out.println(societeServiceImpl.findSociete(societe.getNomSociete()).toString());
          }
          return "ThymeTest";
      }
  }
  </code></pre>
  
  <p><strong>so i did nothing in my controller but did this in my view :
  I tested if my object existed with th:if</strong> </p>
  
  <pre><code>&lt;div th:if="${paramSociete}"&gt;
                      &lt;div&gt;
                          &lt;label&gt;Nom Banque :&lt;/label&gt;&lt;Label th:inline="text"&gt;
                              [[${paramSociete.nomSociete}]]&lt;/Label&gt;
                      &lt;/div&gt;
                      &lt;div&gt;
                          &lt;label&gt;Reference msg:&lt;/Label&gt;&lt;Label th:inline="text"&gt;[[${paramSociete.initialMsg}]]&lt;/Label&gt;
                      &lt;/div&gt;
                      &lt;div&gt;
                          &lt;label&gt;chemin dacces:&lt;/label&gt; &lt;Label th:inline="text"&gt;[[${paramSociete.pathMsgEmis}]]&lt;/Label&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
  </code></pre>