List of usage examples for java.lang NullPointerException NullPointerException
public NullPointerException()
From source file:technology.tikal.ventas.model.producto.ofy.AbstractProductoOfy.java
public AbstractProductoOfy(AbstractProductoOfy base) { this();/*from w ww . ja v a2 s . co m*/ if (base == null || base.owner == null) { throw new NullPointerException(); } this.owner = base.owner; }
From source file:com.milaboratory.util.CompressionType.java
private static OutputStream createOutputStream(CompressionType ct, OutputStream os) throws IOException { switch (ct) { case None:/*from w w w . ja va 2 s .com*/ return os; case GZIP: return new GZIPOutputStream(os, 2048); case BZIP2: CompressorStreamFactory factory = new CompressorStreamFactory(); try { return factory.createCompressorOutputStream(CompressorStreamFactory.BZIP2, new BufferedOutputStream(os)); } catch (CompressorException e) { throw new IOException(e); } } throw new NullPointerException(); }
From source file:com.microsoft.windowsazure.tracing.CloudTracing.java
/** * Add a tracing interceptor to be notified of changes. * /* w ww . j a v a 2s . co m*/ * @param cloudTracingInterceptor * The tracing interceptor. */ public static void addTracingInterceptor(final CloudTracingInterceptor cloudTracingInterceptor) { if (cloudTracingInterceptor == null) { throw new NullPointerException(); } interceptors.add(cloudTracingInterceptor); }
From source file:technology.tikal.ventas.model.producto.ofy.LineaDeProductosOfy.java
protected LineaDeProductosOfy(LineaDeProductosOfy base) { this();// w w w.j av a2s.c om if (base == null) { throw new NullPointerException(); } if (base.owner == null) { throw new IllegalArgumentException(); } this.owner = base.owner; }
From source file:com.jevontech.wabl.services.implementation.UserDetailsServiceImpl.java
public void setRepository(UserRepository userRepository) { log.info("UserDetailsServiceImpl: setRepository"); if (userRepository == null) { throw new NullPointerException(); }//w w w. j av a2 s. c o m this.userRepository = userRepository; }