Bug? Error Compiling layouts code. Error Value cannot be null.

Discussion in 'Bugs & wishlist' started by PhilipBrown, Feb 16, 2015.

  1. PhilipBrown

    PhilipBrown Active Member Licensed User

    Not sure if this is a bug but it's certainly a bit weird.

    It was first reported at http://www.b4x.com/android/forum/th...ugh-the-basic4android-book.35541/#post-317116

    I'm running B4A 4.30. If I try to compile Klaus's SQLExample I get the compile error

    B4A version 4.30
    Parsing code. 0.03
    Compiling code. 0.14
    Compiling layouts code. Error
    Value cannot be null.
    Parameter name: input
    Error File: edit.bal

    Go to the designer script page to debug this error.​

    If I open the designer and open the edit layout, but don't make any changes, the code compiles and runs.
    If I close B4A and re-open the project, it compiles without error even if I don't open the designer.
    If I reboot the PC and re-open the project, I get the error again.

    You can download the SQLExample code from
    http://pennypress.co.uk/wp-content/uploads/2013/04/SQLExample.zip
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is indeed a bug with the handling of old layout files. It is fixed for the next version.

    The workaround is simple. Open the layout file with the designer and save it. It will be updated with the format of the latest version.
     
  3. PhilipBrown

    PhilipBrown Active Member Licensed User

  4. palmaf

    palmaf Member Licensed User

    I downloaded the file SQLExample2 from the link indicated by Philip and the example works perfectly . Thanks

    Francesco Palma - Roma Italy
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice